Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yaviral17/go-ecom
https://github.com/yaviral17/go-ecom
backend ecommerce go-mysql golang jtw mux
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/yaviral17/go-ecom
- Owner: yaviral17
- Created: 2024-07-14T17:57:47.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-07-14T20:53:09.000Z (6 months ago)
- Last Synced: 2024-09-21T13:09:50.694Z (4 months ago)
- Topics: backend, ecommerce, go-mysql, golang, jtw, mux
- Language: Go
- Homepage:
- Size: 4.15 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# About Project
**This is a simple project to demonstrate implementation of auth using JWT on GoLang and having mysql as database.**# How to run
- Clone the project
- Set the environment variables in **`.env`** file
> - **`PUBLIC_HOST`** - The host on which the server will run
> - **`PORT`** - The port on which the server will run
> - **`DB_USER`** - The username of the database
> - **`DB_PASS`** - The password of the database
> - **`DB_NAME`** - The name of the database
> - **`DB_ADDR`** - The host of the database
- Setup database by running **`dbsetup.sql`** commands in the database
- Run **`make run`** to start the server
- Run **`make test`** to run the tests
- Run **`make build`** to build the project