Featuring actors, movies, and a Many-to-many relationship between them.
Explore the docs »
View Movies
·
View Actors
·
Report Bug
·
Request Feature
To get up and running follow these simple steps.
This is what you need to use this repo.
- Swift 5
- Vapor 4
- Setup New Vapor Project with Postgres in Terminal
$:
vapor new MyCoolProjectNameuse fluent?:
Ychoose database type:
1. Postgres
-
POST Movie - Include
{"title":"foo"}
in your request body -
POST Actors - Include
{"name":"foo"}
in your request body -
Link Actor To Movie (and vice-versa) - https://best-movies-db.herokuapp.com/movies/`movie_id`/actors/`actor_id`
See the open issues for a list of proposed features (and known issues).
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE
for more information.
Kenny Dubroff - @KennyDubroff - kenny.dubroff@kennydubroff.com
Project Link: https://github.com/froggomad/Vapor-Best-Movies-Database