Skip to content

cine-estrenos/estrenos-api

Repository files navigation

Estrenos API

Local development

You will need Docker installed locally and afterwards simple run:

$ docker-compose up

That's it you can now go and use the following endpoints:

  • GraphQL
    • localhost:3000/graphql
  • REST
    • localhost:3000/cinemas
    • localhost:3000/movies
    • localhost:3000/movies/:movieId
    • localhost:3000/shows/:movieId
    • localhost:3000/shows/:movieId/:cinemaId

Environment variables

  • SENTRY_DSN Only needed in production

Pre-commit & pre-push

We are currently using Husky for our pre-commit & pre-push scripts.

This tool should set 2 scripts:

  • pre-commit: This script runs right after you do a commit and it permits you to commit only if npm run lint passes
  • pre-push: This script runs right after you do a push and it permits you to push only if npm run lint && npm run test passes.

These scripts can be bypassed if you use the --no-verify argument, for example:

git add .
git commit -m 'My hard drive is about to die, i need to commit this' --no-verify
git push origin some-branch --no-verify

Anyways, is not recommended to bypass the git hooks just because you can, they are here to protect us from non-intentional mistakes at pushing non-working code

Diagrams

Flow

flow

Database

db

Contributors ✨

Thanks goes to these wonderful people (emoji key):


Leonardo Galante

💻 🚧 👀

Hugo David Farji

💻 🚧 👀

Gonzalo Pozzo

💻 🚧 👀

This project follows the all-contributors specification. Contributions of any kind welcome!

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published