REST and GraphQL API of movies and actors
WIth REST you can:
- Basic crud operations with movies and actors
- Register and login with JWT
With GraphQL you can:
- Query movies and actors
THIS API DON'T USE REAL INFORMATION.
This API was crated for learning purposes only.
See the DOCS
Follow any of these methods and open http://localhost:8080/ to see the API welcome page.
Run the command below to quickly deploy this project on your machine, see the docker image for more info.
docker run -d -p 8080:8080 kurovale/kuro-movies:sqlite
-
git clone https://github.com/kuro-vale/kuro-movies-api.git
-
Set enviroment variables
-
DATABASE_UR = The url of your postgres database with sslmode disabled example:
postgres://user:password@localhost:5432/kuro-movies?sslmode=disable
-
SECRET_KEY = A secret key to sign JWT tokens
-
-
Meet go.mod dependencies
-
Run
go run ./main.go