Code Monkey home page Code Monkey logo

nucleoid's Introduction

Nucleoid

Build Status

Nucleoid is a web application bundled with some scripts to build a low cost pay as you go cellphone in the cloud.

Contributing

Nucleoid is written in Ruby, uses the Sinatra framework, ActiveRecord to store persistent data / settings and RSpec for testing.

Setup

  1. Install ngrok (somewhere in your PATH)
  2. Setup a twilio account and get a phone number. You need: account_sid, auth_token and your phone number's sid
  3. Create a .env file from the env.example file and fill in the values from step 2
  4. Run rake db:migrate to create the database
  5. Start the development server bundle exec rerun rackup

Once the development server is started this will update the twilio phone number settings with ngrok's url and the phone number should work.

How to configure

Since the app doesn't have a front end yet. Configuration of the application is made by sending posts to URI's.

The simplest way to do this is using Postman

post APP_HOST/config/:name
value=something

Upon installing you probably want to configure a forwarding number.

Send a post request to APP_HOST/config/FORWARDING_NUMBER value=+15551234567

Seeing the current configuration

APP_HOST/configs.json

Do not disturb

Send a post request to APP_HOST/config/dnb with value=[true|false]

Todo's

  • Continous Integration / Testing
  • Sending message to email that have been caught during Do not distrub mode
  • Some sort of a front-end (maybe angular)
  • Expiry of conversation numbers that are not being used (through a Rake task?)
  • 1-click deployment to Heroku

Assumptions

  • You're using rbenv
  • You have an ngrok config file at '~/.ngrok2/ngrok.yml'
  • You are running rack on port 9292

nucleoid's People

Contributors

rsmacapinlac avatar

Stargazers

 avatar

Watchers

 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.