Giter Club home page Giter Club logo

iwill's Introduction

Commits.to โ€” a.k.a. The I-Will System

Start with the Functional Spec which also gives the backstory for this project.

Development Setup

Follow the steps below. Please make a pull request if any of this isn't super straightforward or you need to do additional steps to get up and running!

1. Set Up The Database

1.1 Install Postgres

For macOS, we recommend brew install postgresql. (If you're not on macOS, please make a PR with instructions for your OS!)

1.2 Start Postgres

For macOS, start it running with either brew services start postgresql to have it as a background service that will restart if you reboot or pg_ctl -D /usr/local/var/postgres start to start it just once.

1.3 Run the following to create a user and a database:

createuser -P iwill
createdb -O iwill commitsto

1.4 Confirm that postgresql is running on localhost:5432

If you run pg_isready you should see /tmp:5432 - accepting connections.

2. Install Dependencies

2.1 Install Node

For macOS, we recommend brew install npm. (If you're not on macOS, please make a PR with instructions for your OS!)

2.2 Install Node packages with

npm install

3. Set Up Hosts File For Subdomains

Add the following line to /etc/hosts with whatever subdomains you want to be available:

127.0.0.1	commits-to.js www.commits-to.js alice.commits-to.js bob.commits-to.js

4. Create Environment File

Create a .env file in the root of the project directory with the following contents, replacing <yourname> with your name:

ENV_NAME=<yourname>-dev
PORT=8080
APP_DOMAIN=commits-to.js:8080
DATABASE_URL=postgres://iwill:iwill@localhost:5432/commitsto

# Optional
MAILGUN_KEY=
MAILGUN_DOMAIN=
MAILGUN_TO=
MAILGUN_FROM=

5. Run The Application

Start the development server with npm run start:dev

6. Seed The Database

Browse (or send a GET request) to http://commits-to.js:8080/resetAndDestroyWholeDatabase which drops all tables and inserts seed data from the data/ folder

7. Try The App

Just surf to commits-to.js:8080 and you should be able to do everything you can do at the production version running at commits.to.

Deployment

Merges to the master branch will be automatically deployed to our Heroku staging tier at http://commitsto.review (UPDATE: This staging server is not up at the moment. We're not sure how much Heroku charges for these things.)

Pull Request Review App

Heroku will create a review app for a new pull request, available at http://commitsto-dev.review

iwill's People

Contributors

chrisbutler avatar dreeves avatar pjjh avatar mikelake avatar

Watchers

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