UWCodeForce / student-net

https://uwcodeforce.ca
2 stars 11 forks source link

Created custom server to handle database operations. #23

Closed xTrig closed 2 years ago

xTrig commented 2 years ago

We're going to need a custom server object for Next.JS in order to run some of the tasks we require.

In this PR, I have created a new Server object, imported express (since next-connect doesn't have a listen() function, will need to look into this.)

Since we're moving away from next.js's built in dev mode, I added nodemon and nodemon.json to setup the hotreload feature, and changed the startup script in the Dockerfile to accomodate.

I also created a basic automatic sql script runner to make sure everyone's local databases are up to date.

Closes #15