A BFF layer can be done in hundred different ways, in our case we chose:
react 16.7.6
typescript
as type checker and transpilerstyled components
as a CSStslint
as a linter tooljest
as a testing frameworkwebpack
as bundler
- NodeJS version 8.11.3
- NPM version 6
-
Install dependencies
npm install
-
Run in development mode
npm run dev
-
Build
npm run build
- Linter runs automatically when we do
git commit
- To run linter manually ->
npm run lint
- Unit Tests runs automatically when we do
git push
- To run tests manually ->
npm run test
- Run tests in watch mode ->
npm run test -- --watchAll <nameOfTheFile>