A flexible subscription management system. The idea is providing features such us: sending emails, handling errors and shutdown using concurrency (channels, waitgroups and goroutines).
- User registration and authentication.
- Subscription plans.
- Email notifications.
- Invoices management.
- User manuals.
Before you begin, ensure you have met the following requirements:
To check the coverage and run all the tests:
go test -v ./cmd/web
Follow these steps to get the Subscription Service up and running on your local machine:
-
Clone this repository to your local machine:
git clone https://github.com/jfernancordova/subscription-service.git
-
Navigate to the project directory:
cd subscription-service
-
Run the application:
make start
-
Access the service locally by opening a web browser and visiting http://localhost.
-
To see the mails through mailhog: http://localhost:8025
-
To populate data to the database:
make load
-
To access:
email: [email protected] password: verysecret
-
To
restart/stop
the subscription service appmake restart make stop