Skip to content

ethnographers/helpReactor

 
 

Repository files navigation

Help Reactor

A help desk application used by Hack Reactor students.

Team

Table of Contents

  1. Usage
  2. Requirements
  3. Development
    1. Installing Dependencies
    2. Setup Database
    3. Setup Redis
    4. Start Node Server
    5. Start Webpack
  4. Roadmap
  5. Contributing

Requirements

  • Node 6.11.x
  • Postgresql 9.1.x
  • Redis 3.2.x

Development

Installing Dependencies

npm install

Setup Database

Create and Start Database

The npm db-setup command only needs to be run once. This will create the database, start it, and initialize it.

npm run db-setup

The db-setup script is equivalent to:

npm run db-create
npm run db-start
npm run db-init

In the event that you just want to start up the database, use the db-start script as follows:

npm run db-start

Migrate and Seed Database

The below script will drop, create, and seed the database tables with sample data found in database/sampleData.js.

npm run db-migrate

Access Database

To access your database from within terminal use the below command.

psql helpReactor

Once you are connected to the database you can you the below query to update a users role.

UPDATE users SET role='admin' WHERE id=1;

Setup Redis

Redis is an open source, in-memory data structure store, used as a database, cache and message broker.

Install Redis

brew install redis

Start Redis

redis-server

Start Node Server

npm run server-dev

Start Webpack

npm run react-dev

Roadmap

View the project roadmap here

Contributing

See CONTRIBUTING.md for contribution guidelines.

About

No description, website, or topics provided.

Resources

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • JavaScript 97.0%
  • CSS 2.4%
  • HTML 0.6%