github.com/vinicel/Wiki-Go


Install
go get github.com/vinicel/Wiki-Go

Documentation

Description

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.

Developers

  • Corentin Croizat
  • Christophe Charlebois
  • ClΓ©ment Haller
  • Guillaume Cornet

Table of Contents

Directory Structure

<Wiki-Go>/
β”œβ”€ api/
|   └─ server/
|       └─ routes.go
|       └─ server.go
β”œβ”€ controllers/
β”œβ”€ documentation/
|   └─ swagger.json
β”œβ”€ middleware/
β”œβ”€ models/
β”œβ”€ utils/
β”œβ”€ view/
β”œβ”€ docker-compose.yml
β”œβ”€ main.go
└─ README.md

Model Structure

Alt text

Used Package

Api Documentation

Once docker-compose is up you can navigate to http://localhost:8085/documentation/api/v1/

Api server

http://localhost:8080

Installation

  • 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