A secret santa generator!
Week 8 project (Charlie, Hannah, Lucy, Oliver)
- Clone repository
- Run
npm install
- Create
config.env
file and ask us for our DB URL (currently using one hosted on Heroku - we know, local databases would be better though! 🤦♂️) - Run
npm run test_db
to see our DB tests - Run
npm run start
ornpm run dev
to roll our server - Head to localhost:2512
- Planning/Whiteboarding:
- Wanted the sports car, lots of discussion, we opted for the skateboard!
(Wanted multiple user authentication, inc. an organisation table in our db) (Would ideally have completely annonymous results via login)
Instead our first draft is going to be for an admin/organiser, who inputs all the names, and sees all the results/who's allocated to who.
What we're proud of:
-
TDD!
-
Wrote failing tests for our getData and postData helpers!
-
File skeleton outlined and implemented
-
Allowed Oliver to join in
-
Set up our all our express views/routes/layouts
-
Got our server up and running
-
WEE BIT OF CSS MY DUDES (Background:images are annoying)
-
Set up Travis/codecov
-
Writing Secret Santa algorithm
-
posting names to db
-
retrieving names from db, displaying in .hbs
-
reset button
-
Super basic CSS
-
AND MORE