See Theory of Operation to get a better idea of how Euclip works.
This is the frontend repository for Euclip Drum Console. It is an ember app that runs against a rails API backend.
local development against api server using a self signed certificate
- Node.js > 18
- ember-cli
npm install -g ember-cli
Assuming you have the back end repository installed and the server running, you can sinmply run ember s --secure-proxy=false --ssl-key /PATH/TO/server.key --ssl-cert /PATH/TO/server.crt
See .ember-cli
for local server config
You can now open that app at localhost:4200
deploy-to-rails.sh
is a helper scipt that assumes the euclip-api repo exists in the same directory as this repo. This script will run build a production version of this app
and copy it to the /public
directory in the rails repo.
From there, the rails app will need to be committed and pushed to heroku. Note the local server should not be running when this command is run.
files are stored in gcloud. To get this running you may need to setup CORS on the cloud storage bucket for the domain you're serving from.
- Authorize gcloud
gcloud auth login --no-launch-browser
- Set CORS setting from
/config/gcloud-cors-config.json
cd config
gsutil cors set gcloud-cors-config.json gs://euclidean-cracked.appspot.com
- Confirm
gsutil cors get gs://euclidean-cracked.appspot.com
You will need the following things properly installed on your computer.
- Git
- Node.js (with npm)
- Ember CLI
- Google Chrome
git clone <repository-url>
this repositorycd euclip
npm install
ember serve
- Visit your app at http://localhost:4200.
- Visit your tests at http://localhost:4200/tests.
ember test
ember test --server
npm run lint
npm run lint:fix
ember build
(development)ember build --environment production
(production)
see deploy_to_rails.sh