Skip to content

DavidSouther/Montana-News-Archive

 
 

Repository files navigation

Montana News Archive Build Status

Development

  1. Install NVM
  2. Install Node.js 4+
  3. Create ./incoming and ./data for uploaded videos and psersistence, or configure ARCHIVE_DATA_ROOT
  4. Install NPM dependencies
  5. Run test suite
  6. Start a webserver
nvm install 4 ; nvm alias default 4 # One-time thing to get the right Node.
cd path/to/project

mkdir incoming
# Alternatively, if you are uploading to a remote location, export this instead:
export ARCHIVE_INCOMING="/var/path/to/uploaded/vidoes"

npm install # The command shouldn't fail.
npm test # The tests should pass, and the command shouldn't fail.
npm start # The server will come up on localhost:8080, and print a banner.

Deployment

In order to cut a new release, you must bump the version in package.json. Any merge into master that successfully passes testing in CI and has a bumped version in package.json will be packaged into an RPM and pushed to the mtna package cloud repository.

Installation in Production

To make installation easier an install script is available to bootstrap your system. The script will add the mtna package cloud repository to your RPM configuration and then install the mtna package.

curl https://raw.githubusercontent.com/PronghornDigital/mtna/master/install.sh | bash

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 80.1%
  • HTML 11.3%
  • JavaScript 4.1%
  • CSS 2.8%
  • Shell 1.7%