anseljh / timeline

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

L4GG Timeline

Microsite to display events compiled by Lawyers for Good Government Volunteers.

Build Status

Getting Started

Create a .env file

cp sample.env .env

Install dependencies

npm install

Start the dev server

npm start

Open localhost:3000

Creating an Event

You can generate all the files needed to display an event by running the following command from the project root directory:

npm run create "Event Name" "2017-02-28 19:30"

Valid event date formats include YYYY, YYYY-MM, YYYY-MM-DD, and YYYY-MM-DD HH:mm.

Note: Event times will be interpreted in UTC. Please verify that the event time looks correct for your local timezone by viewing it in a browser.

Testing

Run all unit and integration tests:

npm test

Run unit tests on file changes (you'll need to restart if there are failures):

npm run test:watch

Run only unit tests:

npm run test:unit

Run only integration tests:

npm run test:integration

About

License:MIT License


Languages

Language:HTML 81.6%Language:JavaScript 18.0%Language:CSS 0.5%