oleville / oleville-voting

Backend for the Oleville Voting System, used to host all SGA-Related elections and referendums
3 stars 0 forks source link

Database connection #5

Closed elijahverdoorn closed 7 years ago

elijahverdoorn commented 7 years ago

This uses Sequelize to connect to the database. I defined all the models, and implemented it in a way that should give us the ability to add more or delete them as needed.

Added .swp files to the gitignore, since they are temp files that vim creates.

Added a route for /elections since I wanted to test the connection. It works. Wanted to make sure that you all are cool with the implementation before I go further.

If you are testing it, make sure to modify the env.js file with the info from your local mysql instance to make the connection, what's in there is a default config now.

elijahverdoorn commented 7 years ago

Note: I didn't do the associations yet. Someone else is welcome to add those, or I'll do them sometime tomorrow if people like the direction this is going.