a Golang REST API with Echo and GORM
Report Bug
·
Request Feature
- FOLDER = camelCase
- FILE = snake_case
- FUNCTION = PascalCase
- Register & Login
- CRUD User
- CRUD Facility
- CRUD Category
- CRUD Venue
- CRUD Admin
- CRUD Booking & Payment
- Go as Programming Language
- Echo as Framework
- JWT Auth as Authentication
- Gorm as ORM
- MySql as Database
- Database Stored in RDS Cloud by Amazon Web Services
This is an example of how you may give instructions on setting up your project locally. To get a local copy up and running, follow these simple example steps.
This is an example of how to list things you need to use the software and how to install them.
- Install Golang, Mysql, and Postman for testing
- create an
.env
file
export APP_PORT=""
export JWT_SECRET="S3CR3T"
export DB_PORT="3306"
export DB_DRIVER="mysql"
export DB_NAME=""
export DB_ADDRESS="127.0.0.1"
export DB_USERNAME=""
export DB_PASSWORD=""
- Clone the repo (in Folder htdocs)
git clone https://github.com/ALTA-Booking-Sport-Arena-App/sport-arena-api.git
- Install module with get
go get
go mod tidy
- Run
source .env
go run main.go
- Access via url
localhost:port
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request