Skip to content

khoaHyh/pomodomo-api

Repository files navigation

Pomodomo API

A backend exposing an API for pomodomo

demo

Known Issues

  • Testing currently doesn't work for PostgreSQL databases yet

Local development

Setup

$ git clone https://github.com/khoaHyh/pomodomo-api.git

$ cd pomodomo-api

$ npm i

Run server

$ npm run dev

Test

$ npm test

Features

  • Endpoints with Unit/Integration testing
    • User registration using unique username and password
    • User login (including session maintenance)

Tech/framework used

Built with:

  • PostgreSQL
  • Express
  • Node.js
  • Mocha
  • Chai
  • Passport.js
  • Digital Ocean Ubuntu Droplet
  • Nginx

App Architecture

demo

  • 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

About

Pomodomo app backend.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published