Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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/tranphuocanhquoc2003

Thank You so much for your time !!!