-
Notifications
You must be signed in to change notification settings - Fork 21
Get Started With Development
git clone https://github.com/NUS-ALSET/achievements.git my-local-achievements-dev
cd my-local-achievements-dev
npm install
npm start
- Open http://localhost:3000 to view it in the browser.
- npm test
- npm run coverage
Use one of options to select approach for fetching users' achievements:
-
firebase functions:config:set profiles.refresh-approach=trigger
- for processing requests by firebase database trigger function -
firebase functions:config:set profiles.refresh-approach=queue
- for processing requests by firebase queue -
firebase functions:config:set profiles.refresh-approach=none
- for disabling any processing requests
In the project directory, you can run:
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
Builds the app for production to the build
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
Deploys the app and security rules to firebase. Specify your project id with --project
flag
Runs mocha tests for services and sagas
Runs mocha tests with coverage report
Go to functions readme
There are 3 project-related points:
-
./src/achievementsApp/config.js
- replaceconfig
var with your project access config. It could be obtained at firebase console -
.firebaserc
- just use your project name -
.travis.yml
- if you want addtravis
deployment just replaceproject
field ofdeploy
part
If you're going to push back your changes to source repository, make sure that you restore default values before PR
Try to use huge react components with react-loadable
package. E.g.: