https://github.com/feluelle/pi-movies
A database and api service for movies 🎥 hosted on a dockerized 🐳 raspberry pi.
https://github.com/feluelle/pi-movies
api database movies raspberry-pi
Last synced: about 2 months ago
JSON representation
A database and api service for movies 🎥 hosted on a dockerized 🐳 raspberry pi.
- Host: GitHub
- URL: https://github.com/feluelle/pi-movies
- Owner: feluelle
- Created: 2018-10-19T17:47:30.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-09T06:52:11.000Z (over 3 years ago)
- Last Synced: 2025-01-23T03:41:24.578Z (over 1 year ago)
- Topics: api, database, movies, raspberry-pi
- Language: JavaScript
- Homepage:
- Size: 235 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
Awesome Lists containing this project
README
# pi-movies
A database and api service for movies 🎥 hosted on a dockerized 🐳 raspberry pi.
It uses [mongodb](https://www.mongodb.com/de) as backend with [express](https://expressjs.com/de/) in the front.
## API Endpoints
The following API endpoints are currently available:
* `GET` `/` Hello World :laughing:
* `GET` `/movies` Gets you a list of all movies listed in the database.
* `POST` `/movies` Adds new movies into the database.
Just pass a json in the request body like
```json
{
"name": "The Movie",
"length": 120,
"rating": 5
}
```
## Getting started
To get things up and running first download and install the following:
* [docker](https://www.docker.com/get-started)
* [docker-compose](https://docs.docker.com/compose/install/)
Then you can build and start your containers on a **raspberry pi**, one for mongodb and one for express:
`$ docker-compose -f "docker-compose.prod.yml" up`
## Contributing
If you want to bring things further you can [contribute](CONTRIBUTING.md) to the project.