A backend exposing an API for pomodomo
- Testing currently doesn't work for PostgreSQL databases yet
$ git clone https://github.com/khoaHyh/pomodomo-api.git
$ cd pomodomo-api
$ npm i
$ npm run dev
$ npm test
- Endpoints with Unit/Integration testing
- User registration using unique username and password
- User login (including session maintenance)
- PostgreSQL
- Express
- Node.js
- Mocha
- Chai
- Passport.js
- Digital Ocean Ubuntu Droplet
- Nginx
- Our backend (server + database) is nested inside a Digital Ocean droplet
- Requests go through Cloudflare, with Authenticated Origin Pulls
- Authenticated Origin Pulls allow our droplet to validate that a web request is coming from Cloudflare
- After going through Cloudflare they then go through Nginx, our reverse proxy, which then gets to our server