Skip to content

RubenOAlvarado/todo-backend-nest

Repository files navigation

Todo Backend NestJS

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.

Running the application

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.

Installing dependencies

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.

Run migrations

To run the migrations, you can use the following command:

npx prisma migrate dev

Run seeds

To run the seeds, you can use the following command:

npx prisma db seed

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

Nestjs/Prisma/Nodejs implementation of the Todo-Backend API spec

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published