Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/daniloab/koa-crud-backend

Backend implementation of REST api with Node.js, Koa.js, MongoDB and Jest Tests
https://github.com/daniloab/koa-crud-backend

koa-crud-backend koa-js mongodb node nodejs rest-api typescript yarn

Last synced: 4 days ago
JSON representation

Backend implementation of REST api with Node.js, Koa.js, MongoDB and Jest Tests

Awesome Lists containing this project

README

        

# Koa JS CRUD Backend Implementation
Backend implementation using koa js to build a REST API.

## run
- run `yarn` to install dependencies

- create a new file `.env` and fill it with the `.env.example` content

- yarn start

see the api on http://localhost:6000

## pipeline

### MongoDB
- [x] create connection with MongoDB
- [x] create user model

### APIs
- [x] GET user
- [x] GET ALL create user
- [x] POST user https://github.com/daniloab/koa-crud-backend/issues/10
- [x] implement body values validation with yup;
- [x] create new user if valid
- [x] validate if user exists and return
- [x] DELETE user

### Auth Flow
- [x] login
- [x] validate user token
- [ ] sign up

## follow me
[Twitter](https://www.twitter.com/daniloab_)
[Twitch](https://www.twitch.tv/daniloassis_)