View Code? Open in Web Editor
NEW
Typescript, React, Redux, Nodejs, Mongodb starter project
JavaScript 98.43%
HTML 0.05%
TypeScript 1.47%
CSS 0.05%
redux-typescript-nodejs-starter's Introduction
Typescript, React, Redux, Nodejs, Mongodb starter project
Workflow for creating a new resource
๐ Shared
- Add api interface to src/shared/api.d.ts
- Add model interface to src/shared/models.d.ts
๐ Server
โ๏ธ Model
- Create configureMethod to create db model
- Add it to models.config.ts
- Create Repository class
โ๏ธ Controller
- Create a controller class that implements the interface you added in api.d.ts
- add it to the kernel.config.ts
โ๏ธ Router
- Create the resource router
- add it to the router.config.ts
๐ Client
โ๏ธ Api
- Create Api class that implements the api interface you added in api.d.ts
โ๏ธ Constants
- Add resource actions constants
โ๏ธ Actions
- Create action creators
- Add them to kernel.config.ts
โ๏ธ Reducers
- Create reducers to manage the state
redux-typescript-nodejs-starter's People
Contributors
Watchers
redux-typescript-nodejs-starter's Issues
server/errors.ts
Method getMessages()
getMessages() { return this.messages; }
should be
getMessages() { return this.message; }
anyway nice work , keep it up!