- Write private methods with _ i.e. _calculateSomething()
- Functions that return boolean value should be formed with
a is/has/does/etc. in front like isBlue(), isLoaded(),
isValid() - Use 4 spaces as tabs, configure your IDE if you have to
- Use ;
- Commit as often as you can, but only functional code
- Test before commiting
- Make a push request if you finished your task
- If you can, document the function like this:
/**
* Your description goes here
* @param {Expected parameter type goes here} 'parameter' goes here
*/
doStuff(parameter){
...
}
- Don't forget clean code principles
- Install Node.js version - 8.9.4
- Run npm install in working dir - installs dependencies
- Launch client with npm start
- Launch backend with npm run server
Paleidus nepamirškit po to sustabdyt su CTRL + C, o jei CMD jau išjungtas tada su taskkill /f /im node.exe
Before doing anything npm install -g serve
cmd 1
- npm run build-server
- node build-server/index.js
cmd 2
- npm run build
- serve -s -p 3000 build
- View localhost:3000 in web
Make sure to do this in project's root directory.
To generate JSDocs use the following command:
jsdoc -p -r ./src/ ./README.md -d ./docs
Alternatively, launch shell script /src/resources/generate_jsdocs.bat.
Norint gaut duomenis iš serverio reikia kreiptis GET {server}/storage/current
kodas: var data = Axios.get("/storage/current");
Vėliau gerai būtų padaryt {server}/storage/current$?s=x1,x2,x3 kad galima būtų rinktis, kurias ašis gauti.