Skip to content

Latest commit

 

History

History
67 lines (45 loc) · 2.16 KB

README.md

File metadata and controls

67 lines (45 loc) · 2.16 KB

Graph Cinema

GitHub GitHub repo size GitHub contributors GitHub stars GitHub forks

Graph Cinema is a GraphQL server built with Apollo Server that allows create and list resources such as movies,actors,directors,genres for educational purposes.

The point of this is just show some of my backend skills, implementing an awesome tech stack that you will se below.

Tech stack

Prerequisites

Before you begin, ensure you have installed the following dependencies:

  • nodejs >= 12.x
  • docker/engine 19.x
  • docker-compose 1.x

Installing graph-cinema

To install graph-cinema, follow these steps:

$ npm install

$ cp env.example .env

By default, the .env file has the redis and mongodb credentials to connect to the docker containers.

Run graph-cinema server

To run graph-cinema server, follow these steps:

On development environment
$ npm run start:dev

This command will start the docker images for mongoDB and redis, after that will run the graphQL on dev mode with nodemon on http://localhost:4000

On production environment
$ npm run dkr:start

This command will create a docker container with the graphql server built, it will also create docker containers for mongoDB and redis.

Contact

If you want to reach me out, please visit my website, and you will find my contact information.

License

This project uses the following license: MIT.