Giter VIP home page Giter VIP logo

pepclock's Introduction

Project Name

The project description

Team

  • Aaron Xavier
  • Alex Matranga
  • Eric Pan
  • Josh Stagner

Roadmap

View the project roadmap here

Contributing

See CONTRIBUTING.md for contribution guidelines.

Table of Contents

  1. Usage
  2. Requirements
  3. Development
    1. Installing Dependencies
    2. Tasks

Usage

Some usage instructions

Requirements

  • Node 6.9.x
  • Redis 3.2.x
  • Postgresql 9.6.x
  • etc

Development

Installing System Dependencies

brew install yarn
brew install redis
brew install postgresql

Yarn is a replacement for npm. It's faster and guarantees consistency -- as you deploy your code in various environments, you won't run the risk of slight variations in what gets installed.

Install Project Dependencies

yarn global add grunt-cli knex eslint

Database Initialization

IMPORTANT: ensure postgres is running before performing these steps.

Database Creation:

create a new database for your development and test environments:

Development envronment: createdb YOUR_DEVEL_DATABASE

Other environments, specify like so: createdb testing_db

Run Migrations & Data Seeds

In terminal, from the root directory:

export NODE_ENV=development && knex migrate:latest

export NODE_ENV=development knex migrate:rollback

export NODE_ENV=development && knex seed:run

export NODE_ENV=test && knex migrate:latest

Heroku run knex migrate:latest --app pepclock-staging

Note: --env NODE_ENV may be omitted for development. For example, knex migrate:latest will run all migrations in the development environment, while export NODE_ENV=development && knex migrate:latest will migrate in the test environment.

Setting up Heroku Scheduler to deliver emails

In a Heroku Scheduler for the app, use this as the command:

curl [app url]/api/workers/invites [app url]/api/workers/recipients

Where for example if the app is pepclock-staging use:

curl https://pepclock-staging.herokuapp.com/api/workers/invites https://pepclock-staging.herokuapp.com/api/workers/recipients

Where for example if the app is pepclock use:

curl https://pepclock.herokuapp.com/api/workers/invites https://pepclock.herokuapp.com/api/workers/recipients

Running the App

To run webpack build: yarn run build

To run server: yarn run start:dev

To run tests: yarn run test

To run your redis server for the session store redis-server

pepclock's People

Contributors

joshuastagner avatar epan avatar amatranga avatar schleppguy avatar fredx avatar

Watchers

James Cloos avatar  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.