Skip to content

zoedaemon/album-backend

 
 

Repository files navigation

Album Backend

Build & Run (Dev)

Full development REST API for frontend investax-album; With sequelize & postgresql, jest & supertest

do this for install all package

$ npm install

then run with docker-compose for running postgresql in docker

$ docker-compose -f deploy/docker-compose.yml up -d 

run project with

$ npm start

Test

just run test unit and see all coverage

npm test

Milestone

  • Base project skeleton
  • Unit testing with Jest & Supertest
  • Sequelize connected to Postgresql
  • Migration & Seeding before test unit running
  • GET /health & unit test; Simple Health Check (CPU percentage usage : WARN if > 50%)
  • POST /photos/list & unit test
  • PUT /photos & unit test (mz/fs); single or multiple parallel images upload
  • GET /photos/{{Album}}/{{FileName}} & unit test (comparing raw image with SHA1) ; get single raw image
  • GET /photos/{{Album}}/{{FileName}} ; delete single photos
  • GET /photos ; delete multiple photos
  • Modular validator Celebrate & Joy
  • Separate logic from routers, i.e. controllers
  • Embeded swagger documentation

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%