| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
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.shOnce you have done this you will need to :
[you@ec2~/bitstarter]$head .env
COINBASE_API_KEY=cb27e2ef0a8e872f792612d4d57937e70476ab8041455b00b35d1196cf80f50d
PORT=8080foreman startTry 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.
git push heroku master
heroku config:pushThen 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.
| Back | FazBrowse Home | New Git URL |