✨ This workspace has been generated by Nx, a Smart, fast and extensible build system. ✨
Run nx graph
to see a diagram of the dependencies of the projects.
After clone the repository, run the following command to install the dependencies:
yarn install
Running docker (for the postgresql database):
docker-compose up -d
Or you can can use 3rd party database services like neondb.io and configure the .env
file.
DATABASE_URL="postgresql://postgres:changeme@localhost:5432" # Change this
Running migrations:
yarn nx prisma-push app
If you want to access the database, you can use the following command:
yarn nx prisma-studio app
Running localnode:
yarn start contracts:node
Then, let's deploy the contracts:
yarn start contracts:deploy # make sure the localnode is running
Let's start the app:
yarn start app
For the dashboard:
yarn start dashboard
yarn dev
Prisma db push:
yarn nx prisma-push app
Prisma db studio:
yarn nx prisma-studio app
Prisma seed:
yarn nx prisma-seed app
Prisma reset:
yarn nx prisma-reset app
Run npx nx connect-to-nx-cloud
to enable remote caching and make CI faster.
Visit the Nx Documentation to learn more.
URL | Port | Description |
---|---|---|
http://localhost:3000 | 3000 | Frontend |
http://localhost:3300 | 3300 | Dashboard |
URL | Name | Description |
---|---|---|
http://localhost:3000/docs | Swagger | API docs |