- App is based on Go 1.12
- DB in develop branch is MySQL
- In order to test application with PostgreSQL db please check MNT-1_REST_API_on_PostgreSQL_db branch
- Main application functionality is available in Docker
- For development purposes REST API Tutorial HTTP Golang framework is available
CHECK ALSO USEFUL REST API Tutorial
- Build and start Docker containers for start application
docker-compose build && docker-compose up -d
- Enter in running application container
docker exec -it golang_app bash
- Navigate to app folder
cd src/github.com/goRESTapi
- Set required credentials in .env file:
cp .env.dist .env
- Run app with GIN framework command
gin -i -all run main.go
-
Now your application is running on 9090 port http://localhost:9090/
-
You can use Postman or any other tool for testing REST API app