Ticket System
Clone this repository
Run npm install
.
MongoDB needs to run before running the server. For c9.io, follow instructions here.
Then
Run
node server.js
ornpm start
.
- If you run
node server.js
ornpm start
, you need to make sure environment variableNODE_ENV
isdevelopment
.Run
webpack
orwebpack --watch
to monitor changes.
OR
Run
npm run webpack
ornpm run webpack:watch
to monitor changes.
- If developing on windows add
win:
before the scripts above, e.gnpm run win:webpack
- Running on node version v4.4.5
bundle.js
(transpiled client js file) is not being tracked. You have to runwebpack
to generate your own.
-
React Component
- Submit form
- Need validate requests. i.e. cannot send empty requests or user is not logged in.
- Create required actions and action types (react redux).
- Add action types to reducers (react redux).
- Fetch user saved templates.
- Submit form
-
Server endpoint (receive requests)
- Create mongoose schema that describes user requests.
- Receive requests and save them to database.
- Need to authenticate users before accepting requests.
- Return success or error message back to client as JSON.