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
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
- Node
>8.11.4
- Yarn
>1.17.3
- PostgreSQL
^11.5
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
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
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
$ yarn start
Push you changes on master and do the next command
$ git push heroku master
- TypeScript - Typed javascript 🔥
- ApolloServer - GraphQL server
- TypeOrm - To Simplify database interactions and add migrations and seeds
Forbidden by Epitech
- Vincent Mesquita - Github