A minimal platform agnostic dockerized backend template for SaaS using Prisma, TS and docker
- Node.js 18.x
- Docker
- Clone the repository
- Install dependencies
- Create a .env file in the root directory copied from .env.example. Set the correct SLASH env variable for your operating system.
- Spin up the database and server
[MacOS] if the server container fails to start due to permissions, run the following command:
npm run dup
chmod +x ./start.sh
- Seed the database with some data
npm install -g dotenv-cli npm run prisma:seed
- Start writing code!
- Build the docker image
npm run docker:build
- Run the docker compose
npm run docker:compose
TBD (WIP)