Skip to content
This repository has been archived by the owner on Mar 5, 2018. It is now read-only.

Latest commit

 

History

History
57 lines (47 loc) · 1.81 KB

README.md

File metadata and controls

57 lines (47 loc) · 1.81 KB

Consus

Build Status codecov npm Dependency Status devDependency Status

Installing

# Install as a global module
npm install consus -g
# Start the server daemon
consusd start
# Stop the daemon
consusd stop

Developing

Getting Started

# Clone the repository
git clone git@github.com:TheFourFifths/consus.git
# Enter the project directory
cd consus
# Install dependencies
npm install
# Build the project
npm run build
# Start the server
npm start

Development Scripts

  • npm test: Run the test suite
  • npm run delete-database: Delete all data in the database
  • npm run data-setup: Delete all data in the database, then add sample data
  • npm run lint: Run the linter
  • npm run build: Build the usable .dist directory
  • npm run coverage: Generate a code coverage report

Project File Structure

  • docs: Project documentation goes here
  • bin: A directory containing the consusd file for running as a global module
  • src: The project's source code
    • api: API apps that register and handle REST endpoints
    • lib: Miscellaneous library modules
    • public: Public files served to the web browser
    • store: Flux stores which contain state and consume actions
  • test: The project's tests
    • unit: Unit tests
    • functional: Functional tests