Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: about 2 months ago
JSON representation
Backend implementation of REST api with Node.js, Koa.js, MongoDB and Jest Tests
- Host: GitHub
- URL: https://github.com/daniloab/koa-crud-backend
- Owner: daniloab
- Created: 2021-03-10T12:16:42.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-04-02T16:01:55.000Z (over 2 years ago)
- Last Synced: 2024-10-18T09:15:48.140Z (2 months ago)
- Topics: koa-crud-backend, koa-js, mongodb, node, nodejs, rest-api, typescript, yarn
- Language: TypeScript
- Homepage:
- Size: 491 KB
- Stars: 64
- Watchers: 2
- Forks: 6
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
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 startsee 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_)