A simple Q(ueue) to manage students in practical sessions
This project uses PostgreSQL as the DBMS and Redis to manage real-time communication with the GraphQL server. You must have these 2 applications set up in your local system to run the project locally. It is also recommended to use Yarn as your dependency manager.
You also need to somehow mimic the UQCloud's authentication system. You need to
somehow inject all the requests with authentication headers. The most important
fields are the X-Uq-Username header and the name and email fields of the
JSON string on the X-KVD-Payload header. You can have a look at the headers
attached to each request by going to https://mp.uqcloud.net.
I use the Mod Header extension personally, but feel
free to use whatever you want.
- Create a new PostgreSQL database
- Fill the
.envfile using the template from.env.example, with theDB_URLfield as the URL of your database. - Run
yarnto install all the dependencies - Run
yarn migration-runto set up your database - Run
yarn server-devto start the express server - Run
yarn client-devon another terminal instance to start the React client development server - Go to
https://localhost:3000
Run yarn build to build, the project is built in the ./build directory.
Run node build/server/server.js to run the server.