Skip to content

⚙️ REST api with NodeJS(KoaJS) MongoDB and Jest Tests.

Notifications You must be signed in to change notification settings

biantris/restris

Repository files navigation

RESTRIS

Functional Backend implementation of REST api with NodeJS(KoaJS) MongoDB and Jest Tests.

Tests Passing

Tools

  • TypeScript
  • Node
  • KoaJS
  • MongoDB
  • Mongoose
  • Jest
  • Supertest
  • Swagger
  • Eslint
  • Prettier

Modules

  • userModel

APIs

  • userGet
  • userGetAll
  • userPost
  • userUpdate
  • userDelete

Auth Flow

  • login
  • validate user token
  • logout

Getting Started

  • clone this repo
# install dependencies
> yarn
# or
> yarn install

# copy .env file
> cp .env.example .env

# start project
> yarn start

# open in
http://localhost:9000/api/version
🔗 Demo:

[wip]