Implementation of Battlefield Play4free's SHOP API in TypeScript/Node.JS.
Everything is done for educational purpose only. Lava is licensed by MIT license, besides parts which are intelectuall property of Electronic Arts / DICE.
Following stuff must be installed to make app working properly:
- Node.js version 14.17.4
You can also run lava by Docker. More info here.
App is using Jest test framework. Our goal is to have 70% of code tested.
Task | Description |
---|---|
start |
Alias of serve - you can simply use npm start |
build |
Launches commands build-ts and eslint |
serve |
node dist/server.js |
watch |
Watches via nodemon dist/server.js |
test |
Runs all tests in test directory |
reformat |
Runs prettier and eslint |
watch-test |
Runs test with watcher |
build-ts |
Builds JavaScript from TypeScript sources |
watch-ts |
Runs build-ts with watcher |
eslint |
Runs eslint to check styles |
debug |
Runs build and watch-debug - development env task |
server-debug |
Runs server via nodemon |
watch-debug |
Concurrently runs watch-ts and serve-debug |
$ npm run debug
Debugger port :6666