Currently in private prototyping. More info coming in the future.
- clone the repository
npm install
- Set up firebase:
npm install -g firebase-tools
thenfirebase login
and follow the prompts - Create a new firebase project at firebase.google.com
- Enable the google auth provider for the project under the firebase console auth section (go to the project dashboard and into the project, then "auth" on the left, then "sign in method", then click on Google and flip the switch to enable it and click Save).
- Set your local development firebase project to be the default:
firebase use <your firebase project name>
- Create a file in the root of your repository named
dev.config.js
with contents like this
module.exports = {
firebase: {
// Replace these with the similar lines from the firebase console info box
apiKey: "fdsjoiasdfjoifasdjiopfdsajiopfdsaj",
authDomain: "projectname.firebaseapp.com",
databaseURL: "https://projectname.firebaseio.com",
storageBucket: "projectname.appspot.com",
}
};
You can grab the value from the firebase console by clicking the giant "add to web app" buttons that generate a similar snippet to the above.
npm run dev
will upload the security rules to your dev instance and start a local development server
Chalees Min School is supported by the incredible work of many open source developers and a number of generous companies.