This is the API for the next iteration of the Hanna Bot geared towards engaging with students at hackathon events.
- Automatically issuing Azure codes
- Mentor roster
- Project Tracking
- Student Inquiry Tracking
- Download and Install Postgres 9.6 (Pick version 9.6.x, and Windows)
- During the installation process, fill out the admin user and password. (Password doesn't have to be fancy, since this is just living in your local computer)
- Download and Install OmniDB
- Open OmniDB and click on connections
- Enter the following configuration: Technology:
postgresql
, Server:localhost
, Port:5432
, Database:postgres
, User: (Your admin username), Title:local-db
- click on the little Plug icon to test the connection. You might need to input your password at this point.
- When you are in, you will need to create a database.
- expand your PostgresSQL, and you will see a Databases item. Right click on it and select "Create Database"
- A tab will be created on the right panel. Change
name
in the SQL to a name for your database
- clone this repo
- run
npm install
- duplicate
.env.example
to.env
- fill the DB_CONNECTION_STRING out, replacing each portion of the string with the right information
- run
npm run migrate:latest
- run
npm run seed:run
- In your
.env
file, set a random value forGRAPHQL_ACCESS_TOKEN
. Again, doesn't have to be fancy, but that's your key for the graphiql client - Run
node server
- Go to
https://localhost:3000/graphiql?access_token=YOUR_ACCESS_TOKEN
to test the GraphQL API