Giter Site home page Giter Site logo

greenlight's Introduction

Greenlight

This is my repository created while following the book Let's Go Further by Alex Edwards.

In the book, a movie API is built. I changed this to an event API, which I hope to use as the basis for a calender API and app later.

Using SQLite

The book uses Postgres as the database. This repository, instead, uses Sqlite. There are quite a few modifications and additions made to the book's code to accomodate this change. These are documented within the code.

.env

I am also using the godotenv package for applocation settings. To install this package:

go get github.com/joho/godotenv

Using Migrate CLI

The command-line statements to use for database migration.

To create a migration:

 migrate create -seq -ext=.sql -dir=./migrations <migration name>

To run a migration (use up or down):

migrate -path=./migrations -database=sqlite3://greenlight.db -verbose up

Versioning

The application uses a combination of Git tags and Git commit hashes for versioning. To add a tag using Git:

git tag v<version-number>

The version output will be in this format:

{tag}-{number of additional commits}-g{abbreviated commit hash}

greenlight's People

Contributors

robwestbrook avatar

Stargazers

 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.