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.
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.
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.