MyGram is a web service where user can post photo, add comment on other user photos and add social media. This project has 4 group endpoint which is:
-
User :
- Register [POST]
- Login [POST]
-
Photo :
- GetAll [GET]
- GetOne [GET]
- CreatePhoto [POST]
- UpdatePhoto [PUT]
- DeletePhoto [DELETE]
-
Comment :
- GetAll [GET]
- GetOne [GET]
- CreateComment [POST]
- UpdateComment [PUT]
- DeleteComment [DELETE]
-
Social Media :
- GetAll [GET]
- GetOne [GET]
- CreateSocialMedia [POST]
- UpdateSocialMedia [PUT]
- DeleteSocialMedia [DELETE]
- Clone this repository
- Create and set up your own environment variables by using the .env.example file. Input your postgres database configuration and your jwt secret key as well as your server port
- And now you're ready to go
- Run this project
go run main.go
- Go Framework: Gin
- ORM: GORM
- Database: PostgreSQL
- Environment Variable: Viper
- API Documentation: Swagger
https://mygram-production-83b7.up.railway.app/swagger/index.html