/todoapp-api

API criada a partir do curso da Rocketseat Ignite NodeJs, mas para um aplicativo de Tarefas em vez de aluguel de carros

Primary LanguageTypeScriptMIT LicenseMIT

To-do list API

DescriptionFeaturesHow to runRequirementsTestsAuthor

Features

  • User
    • User registration
    • User authentication
    • User password reset
    • User token refresh
  • Todo
    • Todo creation
    • Todo deletion
    • Todo change of status
    • Todos listing
    • Todos completed listing
    • Todos uncomplete listing
    • Todos uncompleted deletion

How to run

Requirements

Node
Docker

  1. Clone the project.
git clone https://github.com/RianNegreiros/todoapp-api-node.git
  1. Install the dependencies
npm install
  1. Set .env, ormconfig ant auth files by the examples

  2. Run Docker Compose

docker-compose up
  1. Run the migrations
npm run typeorm migration:run
  1. Run the application
npm run dev

Or

npm run build
node dist/shared/infra/http/server.js

Tests

To run automated tests

npm run test

To manually test with Insomnia
Run in Insomnia}

To manually test with Postman
Run in Postman

Author

Rian Negreiros

Linkedin Badge Gmail Badge