https://github.com/escalopa/goblog
Restful CRUD API, Built with golang
https://github.com/escalopa/goblog
crud-api golang practice
Last synced: 2 months ago
JSON representation
Restful CRUD API, Built with golang
- Host: GitHub
- URL: https://github.com/escalopa/goblog
- Owner: escalopa
- License: mit
- Created: 2022-10-22T17:33:35.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-12-18T15:23:42.000Z (over 2 years ago)
- Last Synced: 2025-01-19T15:20:11.606Z (4 months ago)
- Topics: crud-api, golang, practice
- Language: Go
- Homepage: http://37.46.128.188/goblog/docs/index.html
- Size: 80.1 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GoBlog
## About
This repo is a pure practice for go principlies to improve my skills.
## Packages Used
- viper
- mux
- gorm
- docker-compose## API Usage
### Remote Instance
The application is deployed on heroku. You can access the API at [GoBlog Remote Server](http://37.46.128.188/goblog/docs/index.html)
### Local Instance
To run the local instance, you first have to set up the env vars, You can use the default ones in the `.*.env.example`.
```bash
cp .env.example .env
cp .db.env.example .db.env
```Run the following command to start the application.
```bash
docker compose up
```Then navigate to [Local Instance](http://localhost:9000/docs/index.html) to see the API in action.