Firstly, don't stress out that we will be using this test to judge you in any way except to understand how we can better help you.
Also, we ask that you don't help each other or cheat. Feel free to use any online resource but don't copy/paste answers to each other or if you find something similar online.
The following resources are allowed:
- Any notes you've taken so far.
- Any code you have in your previous projects.
- learn.fullstackacademy.com.
- All the slide decks that we've used in class.
- Express app architecture
- Express routing
- Sequelize model configuration
- Fork this repository to your own Github user account.
- Clone this to your local machine.
npm install
- Create
checkpoint-express-sequelize
database (need this only for the Sequelize portion of the checkpoint) - Test code (see below)
To run all the tests, run npm test
. To run only specific test suites, you can optionally run the following:
npm run express-test
npm run sequelize-test
To only run a specific describe
or it
, you can chain .only
:
it.only('does something', testFunc);
Please make sure you complete specs located in the following files. Additionally, make sure to change an xit
to an it
to change any given spec from pending to active:
tests/express-test/model_test.js
tests/express-test/route_test.js
tests/sequelize-test/model_test.js
You should work on the Express tests before moving onto the Sequelize tests. Specifically for the Express tests, you will need to complete tests/express-test/model_test.js
before moving onto tests/express-test/route_test.js
. Otherwise, the tests will not work. If you get stuck on a spec, you may skip it and come back to it later. However, the tests MAY depend on each other.
You will only be working in the following files:
Express:
models/express-models/todos.js
routes/index.js
app.js
Sequelize:
models/sequelize-models/index.js
As you complete each answer (or make an update), please commit the changes to the git repository (git commit
often as you make progress on the tests). To submit your answers:
- Keep all specs active.
- Push your repository back to your own personal fork.
- Before the deadline,
git commit -m 'submission for deadline'
git push