Creating a Movie

Implement the creation of a new movie.

Understanding the movie module

Now that the genres have been created, it’s time to include movies for rating in our database. In essence, the administrator adds a movie, links to the movie trailer or a brief snippet, and then adds the movie to a genre. A movie can only be created and edited by an admin, but other app users can access them and leave reviews. Let’s get to work on making our first movie!

Setting up the movie model

Let's add a movieModel.go file to the models folder. This file will have the movie struct and the parameters we need to ask the admin user ...

Access this course and 1400+ top-rated courses and projects.