Skip to content

BrookesUniversityLearningResources/vsat-prototype

Repository files navigation

Virtual Storytelling Project

A VR storytelling app for young people.

Note that this is the prototype for the wider VSAT project.

Running

What You'll Need

$ export NODE_ENV=localhost

You'll also need to export the following environment variables; the values can be retrieved from the Heroku Config Vars.

$ export CLOUDINARY_URL=
$ export MAGIC_SECRET_KEY=

If you're on Windows use set ENV_VAR_NAME=VALUE; see this guide.

$ cd packages/frontend
$ yarn install
$ cd ../backend
$ yarn install
$ docker-compose up -d
$ cd ../../
$ yarn dev

View the (frontend) web app in your browser at http://localhost:3000.

The (backend) server app is also running at http://localhost:5000.

Use this URL to verify that the backend is running:

http://localhost:5000/ping

Swapping The Proxy

yarn dev will start both the frontend and backend servers.

If you don't want to run the backend locally — you have an active Internet connection — you can change the proxy the frontend communicates with to the one running in the cloud.

Open setupProxy and edit the value of the `backend variable to point to the deployed app running on Heroku:

const backend = 'https://ancient-sierra-54813.herokuapp.com/';

You can then run just the frontend app like so:

$ cd packages/frontend
$ yarn start

Deploying To Heroku

The deployment process is documented here, but currently you'll need an admin's Heroku credentials to deploy.

$ git push heroku develop:master

About

The VSAT Project Prototype

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published