First, mysql
is required.
For installing on Mac, run
brew install mysql
For installing on Windows, check: https://dev.mysql.com/doc/refman/8.0/en/windows-installation.html
Then create a database named ecoa
:
CREATE DATABASE ecoa;
After that, you must add a .env
file at the root of the repo with your database configuration. For example:
DB_HOST="127.0.0.1"
DB_USER="root"
DB_NAME="ecoa"
Note: if you've set a password, then add
DB_PASSWORD="<your password>"
Make sure you have node
and npm
in your machine
In order to reset and seed the database with data you should use:
npm run db:reset
Then for being able to start the server:
npm start
Now if you open http://localhost:8080, it should be working
Team 2
- Backend - Pedro Alonso Moreno Salcedo A01741437
- Backend - Kerim Taray Malagon A0027581
- Unity - Santiago Velasquez Chang A00832788
- Unity - Felipe de Jesús González Acosta A01275536
- Frontend - Adrián Alejandro Ramírez Cruz A00830640
- Chris Kolmenic MySQL ENUM's Article: https://komlenic.com/244/8-reasons-why-mysqls-enum-data-type-is-evil/
- Table Inheritance Article: https://www.freecodecamp.org/news/single-table-inheritance-vs-polymorphic-associations-in-rails-af3a07a204f2/amp/
- Class Table Ineritance: https://www.martinfowler.com/eaaCatalog/classTableInheritance.html
- Single Table Ineritance: https://www.martinfowler.com/eaaCatalog/singleTableInheritance.html
- Inheritance vs Composition Article: https://betterprogramming.pub/inheritance-vs-composition-2fa0cdd2f939
- Dependency Injection Article: https://8r14z.medium.com/dependency-injection-for-dummies-168dad181a3d
- MiduDev: https://www.youtube.com/@midudev
- W3Schools: https://www.w3schools.com/
- StackExchange: https://stackexchange.com/
- StackOverflow: https://stackoverflow.com/
- MySQLTutorial: https://www.mysqltutorial.org/