lolma-us
This README outlines the details of collaborating on this Ember application.
Prerequisites
You will need the following things properly installed on your computer.
Installation for local development
git clone <repository-url>
this repositorycd lolma-us
yarn install
Running / Development
-
Create a GitHub app.
The callback URL should be
http://localhost:8082/torii/redirect.html
. -
Set up Gatekeeper.
-
Set up an
.env-localhost-4200
file. Example:LMS_GITHUB_CLIENT_ID = <your GitHub app client id> LMS_HOST = http://localhost:4200 LMS_GATEKEEPER_URL = https://<your Heroku app id>.herokuapp.com
-
Run:
FASTBOOT_DISABLED=true ember s
-
Visit your app at http://localhost:4200.
Building to try static FastBoot locally:
-
Create a GitHub app.
The callback URL should be
http://localhost:8082/torii/redirect.html
. -
Set up Gatekeeper.
-
Set up an
.env-localhost-8082
file. Example:LMS_GITHUB_CLIENT_ID = <your GitHub app client id> LMS_HOST = http://localhost:8082 LMS_GATEKEEPER_URL = https://<your Heroku app id>.herokuapp.com
-
Run:
LMS_DEPLOY_TARGET=localhost-8082 ember b -prod
-
Run a static server:
http-server dist/ -p 8082 --cors
If you run into a CORS issue, clear/disable your browser's cache.
-
Visit your app at http://localhost:8082.
Building for production
-
Create a GitHub app.
The callback URL should be
http://lolma.us/torii/redirect.html
. -
Set up Gatekeeper.
-
Set up an
.env-prod
file. Example:LMS_GITHUB_CLIENT_ID = <your GitHub app client id> LMS_HOST = http://lolma.us LMS_GATEKEEPER_URL = https://<your Heroku app id>.herokuapp.com
-
Make sure port
8081
is free. -
Pray and run:
LMS_DEPLOY_TARGET=prod ember deploy prod
Running development server
-
Run a build before you run the server (see above).
-
Run a content server in background on port
8081
:http-server dist/ -p 8081 --cors
-
Finally, run
ember s
in another terminal.
Deploying
Specify what it takes to deploy your app.
Further Reading / Useful Links
License
The source code (everything except for content/) of this website is provided under the MIT licence.
The content/ of this website is provided under the CC BY 4.0 licence.