GithubHelp home page GithubHelp logo

vehpus / bitstarter-ssjs-db Goto Github PK

View Code? Open in Web Editor NEW

This project forked from startup-class/bitstarter-ssjs-db

0.0 2.0 0.0 58 KB

Very simple SSJS app that writes crowdfunder preorders to a local database. Uses Sequelize, Express, Async.

bitstarter-ssjs-db's Introduction

Installation

The following instructions will set up a more complex bitstarter than the one you've done to date. Now you will be recording orders to a database. The following commands are to be executed on your EC2 remote machine.

curl https://raw.github.com/startup-class/setup/master/setup.sh | bash
exit # and then log in again
git clone https://github.com/startup-class/bitstarter-ssjs-db.git
cd bitstarter-ssjs-db
./setup-ssjs.sh

Local and Remote Testing

Once you have done this you will need to :

  1. Edit the .env file to include your API key from http://coinbase.com/account/integrations so that it looks like this:
[you@ec2~/bitstarter]$head .env
COINBASE_API_KEY=cb27e2ef0a8e872f792612d4d57937e70476ab8041455b00b35d1196cf80f50d
PORT=8080
  1. Then you can run the server locally and preview at URLs like http://ec2-54-213-131-228.us-west-2.compute.amazonaws.com:8080 as follows:
foreman start

Try placing some orders and then going to the "/orders" URL at the top to try it out. Note that you will get an "invalid api key" error if you didn't do the .env step above.

  1. For remote servers, deploy and push configuration variables
git push heroku master
heroku config:push

Then you can go to a URL like http://safe-dawn-4440.herokuapp.com and submit orders to test it out. Note again that you will get an "invalid api key" error if you didn't do the .env step above.

bitstarter-ssjs-db's People

Contributors

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