Skip to content

jfernancordova/subscription-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Subscription Service

Github  Language  Platform  Database  Cache 

A flexible subscription management system. The idea is providing features such us: sending emails, handling errors and shutdown using concurrency (channels, waitgroups and goroutines).

Features

  • User registration and authentication.
  • Subscription plans.
  • Email notifications.
  • Invoices management.
  • User manuals.

Prerequisites

Before you begin, ensure you have met the following requirements:

  • Go (Golang). You can download it from here.
  • Docker. You can download it from here.

Testing

To check the coverage and run all the tests:

   go test -v ./cmd/web

Getting Started

Follow these steps to get the Subscription Service up and running on your local machine:

  1. Clone this repository to your local machine:

    git clone https://github.com/jfernancordova/subscription-service.git
    
  2. Navigate to the project directory:

    cd subscription-service
    
  3. Run the application:

    make start
    
  4. Access the service locally by opening a web browser and visiting http://localhost.

  5. To see the mails through mailhog: http://localhost:8025

  6. To populate data to the database:

    make load
    
  7. To access:

    email: admin@example.com
    password: verysecret
    
  8. To restart/stop the subscription service app

    make restart
    make stop