Giter Site home page Giter Site logo

rent-movie's Introduction

Rent movie

Introduction

This is a simple movie rental application API built in GO. The objective was to try and learn GO concepts. Apart from the api, it contains a worker that periodically send emails to defaulter every day.

It was built with lot of struggles and love โค๏ธ

Requirements

Installation

NOTE

  • Before the fourth step, you should have created a database for this application
  • The supported database is Postgres
  • Clone this repo

    git clone https://github.com/rammyblog/rent-movie
  • Change directory to project directory

    cd rent-movie
  • Copy .env template

    cp .env.example .env
  • Add correct database credentials to the .env file, credentials include:

    • PORT: This is the port the application will be served on
    • DB_HOST: This is your database host name/IP address
    • DB_NAME: This is the name of the database created for the application
    • DB_USER: This is your database user
    • DB_PORT: This is your database port
    • DB_PASS: This is your database password if any, it should be left blank if no password is configured (localhost)
    • JWT_SECRET This is for auth.. You can put random string there
  • Seed Movies Data

    make seed
  • Run application

    make run

    This will serve this application on the port you specified in the .env file.

Usage

The API is documented here ๐Ÿ‘‡๐Ÿ‘‡
https://documenter.getpostman.com/view/15213147/2s9YC1WuHX

Contributors

Contributor Name Role Tool Language(s)
Babatunde Onasanya Developer VSCode Go

rent-movie's People

Contributors

rammyblog avatar

Stargazers

Olulode Olatunbosun avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.