Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/quocanh189/demoecom
This is a demo project ecommerce with golang. Implement with jwt-authentication and connect mysql database
https://github.com/quocanh189/demoecom
go golang jwt-authentication
Last synced: 14 days ago
JSON representation
This is a demo project ecommerce with golang. Implement with jwt-authentication and connect mysql database
- Host: GitHub
- URL: https://github.com/quocanh189/demoecom
- Owner: QuocAnh189
- Created: 2024-10-30T03:31:59.000Z (17 days ago)
- Default Branch: main
- Last Pushed: 2024-10-30T05:54:14.000Z (17 days ago)
- Last Synced: 2024-10-30T07:29:45.328Z (17 days ago)
- Topics: go, golang, jwt-authentication
- Language: Go
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
## E-commerce REST API in Go
### Installation
- [Migrate (for DB migrations)](https://github.com/golang-migrate/migrate/tree/v4.17.0/cmd/migrate)
## Running the project
Remember install `make` and `migrate` for your devices
Firstly make sure you have a MySQL database running on your machine or just swap for any storage you like under `/db`.```bash
make migrate-up
```After that, you can run the project with the following command:
```bash
make run
```or run with `air` (check `air -v` or run `go get github.com/cosmtrek/air`)
## Running the tests
To run the tests, you can use the following command:
```bash
make test
```## Author Contact
Contact me with any questions!
Email: [email protected]
Facebook: https://www.facebook.com/tranphuocanhquoc2003Thank You so much for your time !!!