a Simple CRUD for User and User Login
PreInstall
How to use
- Clone this Repository using
git clone
- Run Docker Desktop
- use CMD Command on this project root
docker-compose build
docker-compose up
- The first
docker-compose up
might be failed so stop it byCtrl + C
- run
docker-compose up
again and you are good to go
- The first
- access http://localhost:8080/swagger/index.html#/
- The app is ready to use.
Database included and can be accessed at http://localhost:5003
root
-config // Contain Db Configuration file
-controllers // Contains Controllers
-docker // Contain app.dockerfile for dockerise
-docs // auto-generated file by Swagger
-middlewares // middlewares for auth
-models // Contains Models for database structure
-routes // Contains Routes
-utils // Conatins utility file for multiple uses
.env // an env file
.docker-compose.yml // docker related file
go.mod // go mod
main.go // the main.go
README.md // this Readme file
- phpmyadmin
username: root
password: root
- application's admin
username: admin
password: admin