Giter VIP home page Giter VIP logo

bigboringsystem's Introduction

big boring system

Build Status Dependency Status devDependency Status

Feel like contributing?

Please review https://github.com/bigboringsystem/bigboringsystem/blob/master/CONTRIBUTING.md

Setup

After cloning the repo, install dependencies and copy the local configuration file:

npm install
cp local.json-dist local.json

Create a Twilio account. After you create it, go to https://www.twilio.com/user/account/ to get the SID and Auth Token. Enter these into local.json

Make sure that twilioNumber in local.json is the full number obtained from Twilio including the country code. For example, a United States based number needs to be prefixed by '1' and the area code, i.e. "1NNNNNNNNNN".

Then start the server:

npm start

Visit http://localhost:3000 in your browser.

Development Setup

If you are trying to set up b.b.s. for local development only, you can use npm run dev instead of npm start to bypass certain requirements. For instance:

  • You won't need to set up Twilio credentials at all
  • In fact, you don't even need to have a local.json file. Dev mode will just use some simple defaults if you don't create one.
  • To log into the system, you can go directly to /authenticate and type in the PIN that's listed on the page for you. Or enter a valid-looking phone number on the home page to get to /authenticate, but you'll always use the listed dummy dev PIN.

Ops

Make sure to add yourself as an op in local.json by entering your UID. You can find this on your http://localhost:3000/profile page near the top.

This version of Big Boring System intentionally has no threading. Check this post for more details.

Tests

npm test

OMG DOCKER

If you want to deploy your bbs in less than 10 minutes it is fairly trivial with docker! A really simple way to get started is by using the docker application image on Digital Ocean.

Clone this repo, and create a local.json.

Build a container:

docker build -t bbs-container .

Run the container:


docker run -d -p 80:3000 --name bbs -v $PWD/db:/db bbs-container

-d runs the container as a daemon process

-p 80:3000 binds port 3000 of the app to port 80 on our server

--name bbs a name we can use to refer to this process

-v $PWD/db:/db mount the db folder in our present working directory to the db folder used by the app (makes database persistent)

bbs-container the name of the container to use

You can now easily stop and start this process with docker stop bbs && docker start bbs

If you make changes you will need to rebuild the container.

bigboringsystem's People

Contributors

belen-albeza avatar brianshumate avatar byronhulcher avatar colingourlay avatar cvan avatar davidcelis avatar eiriksm avatar erunion avatar gggritso avatar imakewebthings avatar isaacs avatar jasonrhodes avatar joates avatar jory avatar k88hudson avatar llkats avatar miikka avatar remixz avatar rtorr avatar selenamarie avatar shuhblam avatar spinda avatar thefoxis avatar

Watchers

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