Giter VIP home page Giter VIP logo

eberly-ohq's Introduction

15-112-Queue

Realtime queueing for office hours.

Running Locally

These instructions are for Mac or Linux users, because all current devs are running some kind of unix. Google the Windows equivalents!

Run postgresql locally if not already running:

pg_ctl -D /usr/local/var/postgres start

If you don't have knex:

sudo npm install knex -g

Then:

cd app
npm install
knex migrate:latest
knex seed:run
npm start

Navigate to localhost:3000. Don't use 127.0.0.1:3000. It will break parts of the queue (a cookie domain issue).

Interacting with the database

Local

psql queue

Prod (please only do this if you know what you are doing)

Make sure that the databases's security group allows for external TCP connections from your IP.

psql --host=aaxorijd436n8a.cxxtl6ujavn8.us-east-2.rds.amazonaws.com --user=queue --db=ebdb

Note: the host address (aaxorijd436n8a.cxxtl6ujavn8.us-east-2.rds.amazonaws.com) will change as RDS provisions new boxes for our DB, so just check RDS for the exact url if we ever upgrade/change instances.

Testing Procedures

  • Run stress test
  • Run unit tests on all browser types
  • Test on mobile using chrome dev tools

Database Environmental Variables

  • RDS_HOSTNAME
  • RDS_PORT
  • RDS_DB_NAME
  • RDS_USERNAME
  • RDS_PASSWORD

eberly-ohq's People

Contributors

austin-schick avatar fletcher-marsh avatar kevinzhe avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.