A swagger documentation can be found under /docs
The live endpoint can be found under https://simple-review-api.herokuapp.com/docs/
- create a
Collection
and link all the reviews to the createdCollection
- no authentication is needed, "safety" is given by collections being hidden
$ npm install
# production mode
$ npm run start:prod
# watch mode
$ npm run start:dev
# database
$ docker-compose up
# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov
The backend is being hosted by heroku. It uses ci/cd to generate and deploy it. Also the database is hosted on heroku. Some parts of the repository are only for the heroku implementation.
These are mainly for the start of the application and how to connect to the heroku database.
- Procfile
- tells heroku the entry point of the application
Collection
have multipleReviews
that describe a common thing (food review, hotel review, etc.)- these will allow a connection between multiple
Reviews
, meaning that two Reviewers are always different entities, when they are not in the same collection (even if they are the same in reality)
- these will allow a connection between multiple
Review
is one rating for a specific thing, it will be connected to otherReviews
via aCollection
- additional meta data like completions etc. are linked by the
Collection
- meaning if we want to get all possible already created Reviewers for a new
Review
then this can only be achieved by requesting the data from theCollection
which internally requests different data from theReviews
- meaning if we want to get all possible already created Reviewers for a new