module
0.0.0-20240306115243-22b227f86721
Repository: https://github.com/jonzeleznik/go-movie-api.git
Documentation: pkg.go.dev
# README
Project Title
Table of Contents
About
This is movie API but you own your data.
The focus is on the /search/
endpoint. It checks if, the movie title you are searching for, is in your DB. If there is no movie with thaat title, then the API searches for that title in their API and then write to your own data base.
Getting Started
Prerequisites
- Go
- TMDB api key
- Cloned repo
Dependencies
- fiber
- gin
- /joho/godotenv
Installing
Install depoendecies
task install
Build app
task build
Run the app
task dev
Endpoints
- POST
/movies
- create a movie - GET
/movies
- get all movies - GET
/search/:title
- search movies - POST
/watchlist
- add movie to watchlist - GET
/watchlist
- get all movies from watchlist