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