1.0.0 • Published 10 months ago

todo-rest v1.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
10 months ago

TODO Rest API

A todo app rest api using Node.js and Typescript

Local

There are 2 ways to get a local development env running:

Method 1: Install From Source

$ git clone https://github.com/ginderick/todo-rest.git
$ npm install
$ npx prisma migrate dev
$ npx prisma generate
$ npm run dev

This installation method assumes that MySQL server is already running on your local machine and the .env DATABASE_URL was updated accordingly

Method 2: Docker Compose

$ git clone https://github.com/ginderick/todo-rest.git
$ docker compose up --build -d

If using docker compose, the servers will be available on the following ip:

Update the DATABASE_URL in the .env file accordingly

Testing

$ npm run test

Postman Collection

Postman collection is available as a published collection:

https://documenter.getpostman.com/view/15331816/2s93m4ZP9S#ba49026a-3e8b-475f-984c-8c9810073e46

and is also available in the /docs folder

Built With

  • Express - Node.js web application framework used
  • Zod - TypeScript-first schema validation with static type inference
  • Passportjs - An authentication middleware
  • Typedi - Dependency injection
  • Prisma - ORM and database migration tool
  • Jest - Testing framework
  • Supertest - For http assertions