/sdk-quest-backup-boilerplate

Primary LanguageJavaScriptBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

Getting Started

This boilerplate is meant to give you a simple starting point to build new features in Topia using our Javascript SDK.

  • Clone this repository
  • Run yarn in server
  • cd client
  • Run yarn in client
  • cd .. back to server

Add your .env environmental variables

API_KEY=488ecv4e-fdf73-fgfq6v682ea-4r41-av3a
API_URL=http://localhost:3001
INSTANCE_DOMAIN=api.topia.io
INTERACTIVE_KEY=2oij2asdf38v0j340j428
INTERACTIVE_SECRET=enteryoursecret

Where to find API_KEY, INTERACTIVE_KEY and INTERACTIVE_SECRET

Topia Dev Account Dashboard Topia Production Account Dashboard

Deploying to Heroku

  • Go to https://heroku.com and create an account if you don't already have one.
  • Create a new Heroku project.
  • Add your .env parameters to a heroku project.
  • Add both the https://github.com/mars/create-react-app-buildpack.git and heroku/nodejs buildpacks to your project.
  • From your terminal, type git remote add heroku <your heroku git URL>.
  • From your terminal, type git push heroku master.