This is a generated Platformatic DB application.
You'll need to have Node.js >= v18.8.0 or >= v20.6.0
# install dependencies
pnpm i
Start the server with:
pnpm dev
Open browser to http://localhost:5003/doc. You will redirect to doc page
pnpm build
At start of application the migration contained into `migrations' folder will define and seed initial database.
command shortcut
pnpm docker:build
Show content
docker run -it gemini-api /bin/sh
- ⚡ The Platformatic DB server is running at http://localhost:5003/
- 📔 View the REST API's Swagger documentation at http://localhost:5003/documentation/
Following the command list for setup and integrate Prisma. At first startup we must generate prisma client
1.
npx prisma init --datasource-provider postgresql
2.
npx prisma db pull
3.
npx platformatic db migrations apply
4.
npx prisma db pull
5.
npx prisma generate
6.
npx platformatic db start
When update routes remove dist folder. This because when pnpm start
is executed update dist and doesn't change old routes