This is one of the microservice for the 9Kicks project. It is written in Go and uses the Gin framework.
Implemented features:
- User registration with email verification
- User login
- User logout
- User password reset
- Product management
- Full-text search with OpenSearch
- Product review management
- AWS account
- AWS DynamoDB
- Docker
- OpenSearch
cp .env.example .env
Input your credentials in the .env
file.
AWS_ACCESS_KEY_ID="<your-aws-access-key>"
AWS_SECRET_ACCESS_KEY="<your-aws-secret-access-key>"
AWS_REGION_NAME="<your-aws-region-name>"
DB_TABLE_NAME="<dynamodb-table-name>"
OPENSEARCH_ENDPOINT="<opensearch-endpoint>"
OPENSEARCH_USERNAME="<master-username>"
OPENSEARCH_PASSWORD="<master-password>"
Build the Docker image:
docker build --no-cache -t 9kicks-go .
Run the Docker container:
docker run -p 8080:8080 9kicks-go