This repository contains a simple example of a backend for an Ecommerce Application with User Authentication with JWT in Go.
Before running the project, ensure that you have the following tools installed on your machine:
- Migrate: For managing database migrations.
Firstly, ensure you have a MySQL database running on your machine. You can swap it for any storage you prefer under /db
.
Then, create a database with the desired name (default is ecom
) and run the migrations:
make migrate-up
- Update Dockerfile and setup.
- Update Postman collection.
- Update Tests.
- Implement Refresh Token in JWT
- Implement ATOMIC design of Types
- Add User Order History
- Add User Address feature
- Implement Cancel Order for Items that are not shipped
- Perform optimizations.