My Sales Manager
MSM is an app built with Typescript, NestJS, Prisma and React to manage your sales (+ affiliates).
What's inside?
This turborepo includes the following packages/apps:
Apps and Packages
web
: a React appapi
: a Nestjs appconfig
:eslint
configurations (includeseslint-config-next
andeslint-config-prettier
)tsconfig
:tsconfig.json
s used throughout the monorepo
Each package/app is 100% TypeScript.
Utilities
This turborepo has some additional tools already setup for you:
- TypeScript for static type checking
- ESLint for code linting
- Prettier for code formatting
- Prisma for database ORM
- Docker Compose for local database
Development
Feel free to hot on in each app folder and follow the guidelines to develop the project.
To run, use docker-compose, much easier.
Build
To build all apps and packages, run the following command:
yarn run build
Docker
Use docker compose to deploy a Postgres database, the backend app and the frontend app.
$ docker compose up -d
If is your first time deploying the database, you might need to create the database and the tables with Prisma.
$ yarn workspace api prisma migrate dev
Copy /api/.env.example
to /api/.env
and then run this command to run the migrations.
$ yarn workspace api prisma migrate dev
Develop
To develop all apps and packages, run the following command:
yarn run dev