This is a school project. The requirements are to create a restfull api, using Go, to manage some articles with comments. We must use JWT for the authentication, MVC pattern for the architecture, and GORM with MySQL for the database.
A complete documentation with a clean repository is mandatory.
- Corentin Croizat
- Christophe Charlebois
- Clément Haller
- Guillaume Cornet
<Wiki-Go>/
├─ api/
| └─ server/
| └─ routes.go
| └─ server.go
├─ controllers/
├─ documentation/
| └─ swagger.json
├─ middleware/
├─ models/
├─ utils/
├─ view/
├─ docker-compose.yml
├─ main.go
└─ README.md
- crypto - Go cryptography libraries (bcrypt)
- mux - HTTP request router and dispatcher
- gorm - ORM library for Go
- jwt - Go implementation of JSON Web Tokens
- swagger - Go implementation of Swagger 2.0
- CORS - Go cors handler
Once docker-compose is up you can navigate to
http://localhost:8085/documentation/api/v1/
http://localhost:8080
- Launch MySQL, phpmyadmin, swagger, and api
docker-compose up --build
Wait for the mysql container to mount
if the server is not up when the mysql container has finished mounting, run the docker-compose up
command again