Learnful: Education for Digital Natives
Deployment:
— Chat:
— Tasks: Huboard
- Production site
- What's the idea behind this?
- Release notes
- Discussion group
- Contributor Licensing Agreement
Free Nodejitsu drone courtesy of their open-source program.
-
Install NodeJS.
-
npm install -g grunt-cli bower http-server
-
Create a new Firebase datastore (suggested name:
learnful-dev-<username>
). -
Set up environment variables in your
.bashrc
:export LEARNFUL_FIREBASE=learnful-dev-<username> export LEARNFUL_FIREBASE_AUTH=<secret>
You can find the auth secret in your Firebase datastore's dashboard, appropriately enough in the "Secrets" section.
-
Clone the repository onto your machine.
-
Run the backend code:
cd learnful/server npm install node main.js
Leave it running in a separate shell.
-
Build and run the frontend code:
cd learnful/client npm install bower install grunt http-server
You only need to rebuild if you create or delete files in
learnful/client/src
, add or remove Bower components, or change the environment variables above. Otherwise, just reload the page. -
Build a client distribution:
cd learnful/client grunt dist http-server dist
Note that anything committed to
master
is immediately deployed to production, and that you'll need to sign a Contributor Licensing Agreement before we can accept your pull request.