StrawberryLaunchpad

This workspace has been generated by Nx, a Smart, fast and extensible build system.

Understand this workspace

Run nx graph to see a diagram of the dependencies of the projects.

Techstacks

Development

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

Run development faster

yarn dev

Working with database:

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

Remote caching

Run npx nx connect-to-nx-cloud to enable remote caching and make CI faster.

Further help

Visit the Nx Documentation to learn more.

Ports

URL Port Description
http://localhost:3000 3000 Frontend
http://localhost:3300 3300 Dashboard

Useful links

URL Name Description
http://localhost:3000/docs Swagger API docs