Skip to content

Welcome to the Greenlight Project, inspired by the principles and methodologies outlined in the "Let's Go Further" book by Alex Edwards. This project is a backend application written in Go (Golang) that manages movie data.

License

Notifications You must be signed in to change notification settings

ovaixe/greenlight

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overview

The Greenlight Project is designed to showcase a practical application of backend development using Go. Inspired by the "Let's Go Further" book by Alex Edwards, this project focuses on creating a high-performance, reliable, and easy-to-maintain backend service for managing movie data.

Getting Started

To get started with the Greenlight Project, follow the instructions below.

Prerequisites

  • Go (version 1.16 or higher)
  • Git
  • PostgreSQL

Installation

Clone the repository

git clone https://github.com/ovaixe/greenlight.git
cd greenlight

Set up environment variables

Create a .envrc file in the root directory and add the following variables:

export GREENLIGHT_DB_DSN=your_database_connection_string

Install dependencies

make vendor

Usage

To run the project locally:

Start the application

make run/api

API Endpoints

  • GET /v1/movies: Retrieve a list of movies
    
  • POST /v1/movies: Add a new movie
    
  • GET /v1/movies/{id}: Retrieve a specific movie by ID
    
  • PATCH /v1/movies/{id}: Update an existing movie
    
  • DELETE /v1/movies/{id}: Delete an existing movie
    
  • POST /v1/users: Register a new user
    
  • PUT /v1/users/activated: Activate a registerd user
    
  • POST /v1/tokens/authentication: Create a authentication token for user
    

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

Welcome to the Greenlight Project, inspired by the principles and methodologies outlined in the "Let's Go Further" book by Alex Edwards. This project is a backend application written in Go (Golang) that manages movie data.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published