Wiredcraft / test-fullstack

6 stars 43 forks source link

full stack test for Nick #40

Closed nickzheng closed 4 years ago

nickzheng commented 4 years ago

Focus quite on Backend, Front is quite simple

Back end Tech stack

Front end Tech stack

  1. redux,saga
  2. CDD(Storybook) for components development
  3. use storybook snapshots instead of jest snapshots
  4. TDD for test redux(reducer, saga)
  5. prettier eslint with commit, push hook (husky) lint-staged
  6. commitlint
woodpig07 commented 4 years ago

Hi Nick,

This is Kate from Wiredcraft, assigned to review the test.

Could you let us know the global dependencies like node/npm version etc. as I'm trying to bring up the project locally.

Also I've noticed the backend is built based on Nestjs which was heavily with Typescript, so I wonder why you didn't implement the React based frontend with TS?

nickzheng commented 4 years ago

Hi Kate @woodpig07 ,

Env:

  1. Docker version 19.03.5, build 633a0ea
  2. node v12.13.1`
  3. npm 6.13.4

How to start backend:

  1. install nest-cli globally $ sudo npm i -g @nestjs/cli
  2. $ cd backednd project
  3. $ npm install
  4. install pgsql and redis with docker npm run docker-compose
  5. $ npm run start to start project

Frontend is created by create-react-app The reason why I use pure javascript for fronted is, for this test I pay too much time on the backend, so not enough time on front end