This is an example implementation of moredip's Todo-Backend API spec, using NestJS, [Prisma] (https://www.prisma.io/) and PostgreSQL.
This example saves todos in a PostgreSQL database using Prisma ORM. This code is based on the todo-backend-typescript example by parambirs on the Todo-Backend website.
It includes a docker-compose file to run the PostgreSQL database and the application in a containerized environment. More information on how to run the application can be found in the Running the application section.
To run the application, you need to have Docker installed on your machine. You can run the application using the following command:
docker-compose up --build
This command will start the PostgreSQL database and the application in a containerized environment. The application will be available at http://localhost:3000.
If you want to install the dependencies and run the application without using Docker, you can do so by running the following commands:
npm install
npm run start
This will start the application on http://localhost:3000.
To run the migrations, you can use the following command:
npx prisma migrate dev
To run the seeds, you can use the following command:
npx prisma db seed
This project is licensed under the MIT License - see the LICENSE file for details.