Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nurriyad/contact-server
A simple REST API server for personal contract management
https://github.com/nurriyad/contact-server
express mongodb
Last synced: 16 days ago
JSON representation
A simple REST API server for personal contract management
- Host: GitHub
- URL: https://github.com/nurriyad/contact-server
- Owner: nurRiyad
- Created: 2023-02-02T19:14:16.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-23T07:30:51.000Z (10 months ago)
- Last Synced: 2024-11-09T00:57:22.939Z (2 months ago)
- Topics: express, mongodb
- Language: JavaScript
- Homepage:
- Size: 296 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Contract Server
An api server built with mongodb to manage your personal phone contracts
### Local Development
1. Run mongodb locally or in docker using `docker run -d -p 27017:27017 mongo`
2. Run `npm i` to install all dependency
3. Run `npm run dev` to start the api server### Production Build
1. Make sure you have docker installed
2. Run `docker compose up` that's all you need### Todo
- [x] Add router
- [x] Add model
- [x] Add controller
- [x] Add auth middleware
- [x] Add hashing for password
- [x] Add jwt token
- [x] Add validation
- [x] Handle error properly
- [x] Add proper logger
- [x] Show different error on prod and dev
- [x] Use esm remove common js
- [x] Add docker and docker compose
- [ ] Add test