-
-
I have posted this project on my GitHub
-
here we can see , how to create new record of movies in database
-
here we can get status of watched/not watched via movie name and relasedate
-
its a table plus view where we can see our database has data we sent
-
these are all routes to API
-
its postman view where we can see we can retrieve all movie list
Inspiration
I have recently done a project related to restaurant management where I learn Golang RESTful approach , I have designed a complex backend for ordering food , generating invoices and user authentication using JWT authentication , from their I get inspired to built this project as Golang Microservice
What it does
Basically its a Golang Api we can use to store movies list with many details and a flag which tells us about ,is current movie is favourite/ watched earlier or not Its schema has two table Movies and Director both are connect with ID of movie . you can visit my GitHub to see all my outs or routers for this API. Its uses gorillaMUX framework for handling server request and GORM to handle database operation on model .I have used Postgres as my Database and setup locally and deploy it on my local sever with port 3333
How we built it
- we built easily with gorilla mix web framework that will give you a default router for handling client request/response
- we uses GORM for easy operation on Postgres database
- we don't have to write queries , we can directly use its inbuilt functions for data manipulation
Challenges we ran into
- As I have very much experience in Golang or building APIs , its not too hard to design schema and built worker function or it .
Accomplishments that we're proud of
- very happy to take part in this hackathon
What we learned
- Golang Microservice/API design
- Using gorilla MUX framework
- Using GORM
- Database Schema Design
- JSON
- Relational database management
What's next for MovieBackend
I have 2 year of experience on working with android development , so I m thinking to develop frontend for this API and also going to containerise this API with docker and deploy using docker-compose both my Api and Postgres cluster
Built With
- golang
- gorillamux
- gorm
- json
- postgresql
Log in or sign up for Devpost to join the conversation.