Skip to content

This project has been made for the Javascript Fullstack module at Epitech during the 5th year.

Notifications You must be signed in to change notification settings

My42/Alebrije-back

Repository files navigation

Alebrije

This project has been made for the Javascript Fullstack module at Epitech during the 5th year.

It's a web app to order tables and drinks at the famous night club El Alebrije.

This github repository is the app's back

To see the front : Alebrije Front-End

Getting Started

These instruction will get you a copy of the project and you'll be able to run it on your local machine for development and testing purpose. See deployment for notes on how to deploy on a live system

Prerequisites

  • Node >8.11.4
  • Yarn >1.17.3
  • PostgreSQL ^11.5

Installing

Install all the dependencies

$ yarn install

Create the PostgreSQL database named alebrije

CREATE DATABASE alebrije;

Run the migrations

$ yarn run migration.up

Run the seeds

$ yarn run seed.run

Running the tests

Before running all the tests you have to create a database named test_alebrije

CREATE DATABASE test_alebrije;

Init the database

$ yarn run test.migration.up

Run the tests

$ yarn test

Running the app

Before running it you have to set an environment variable called SENDGRID_API_KEY with a sendgrind api key

  • on MACOS/Linux
    export SENDGRID_API_KEY=<API_KEY>
    
  • on Windows
    # Windows CMD
    C:\> set SENDGRID_API_KEY="<API_KEY>"
    
    #Windows Powershell
    PS C:\> $env:SENDGRID_API_KEY="<API_KEY>"
    

You can now run the app

$ yarn run dev

Deployement

On a live system

$ yarn start

On heroku

Push you changes on master and do the next command

$ git push heroku master

Built with

Contributing

Forbidden by Epitech

Authors

About

This project has been made for the Javascript Fullstack module at Epitech during the 5th year.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published