- Fork and clone this repo
npm install
- Read the rest of this
README.md
carefully - it contains the requirements for the project - Start the build process and your application with:
npm run start:dev
. If you using Windows, you may need to executenpm run start-server
andnpm run build-watch
separately (in their own terminal tabs). - If you navigate to the URL you should see some UI already :) [We already have some connection code to get you started]
- Check out the starting seed file in
seed.js
- you can run it by executingnpm run seed
You are creating a simple fullstack app to view the candies in your goodie bag. Yum! The requirements provided outline what we would like you to accomplish, but feel free to branch out and add more functionality if you wish.
For this project, you must use Express to handle HTTP requests and Sequelize to interface with your database. Likewise, you must use React, Redux and React-Redux on the front-end. This means that all important state must be managed by the Redux store (unimportant state, like form data, may be managed by stateful React components). Components that display data should therefore be connected to the Redux store. If you perform side-effects (like AJAX requests), you should encapsulate them in thunks.
For the requirements, refer to the following file:
REQUIREMENTS.md
- contains the functional requirements of the project
Make sure to read them carefully!
- GET: use your browser
- POST / PUT / DELETE :
- CLI (command line interface) with
curl
- e.g.
curl -H "Content-Type: application/json" -X POST -d '{"username":"kate","password":"1234"}' http://localhost:3000/api/login
-H
: headers.-X
: verb.-d
: data (must be of the type specified in headers). http://[address]:[port]/[route_path]
- e.g.
- Postman
- Databases: use Sequelize in your routes and see if you are receiving what you expect