Npm install
- Install project dependencies
Run CD backend
from root
Run knex migrate:latest
, followed by knex seed:run
- Generates tables in DB and populates with existing data
Run Node Server.js
in backend folder of project directory - initialises Database server
Change directory to project root, Run NPM start
- Initialises Frontend server
Frontend:
Run NPM test -- --coverage a
- Runs all frontend tests followed by coverage.
Backend:
Run NPM run test2
- Run all backend tests. Upon CTRL + C to be presented with coverage
For the rest of the week you will be working to create a habit tracker. Your website should have the following functionality for users:
- Users should be able to login
- Users should be able to choose a habit they want to track (e.g water, exercise, 8 hours of sleep) and choose the frequency at which they want to track the habit.
- Users should be able to track a habit and mark it as complete for the day.
- Users should be able to see if they have completed a habit for the day and see if they have a streak of completing their habits.
Your website should have the following technical functionality:
- Developers should host a database to store the daily information about users.
-Created a design template and planned the components that we would need.
-Tried multiple database solutions to find the best fit for our project.
-Created the schema for our database tables.
-Bootstraped the frontend with create-react-app.
-Created Log in template.
-Build the routes for the API.
-Create a basic frontend.
-Flesh out log in and sign up.
-LogIn/SignUp can't be started until UserAuth routes have been established
-Routes established(api/ user auth)
-API routes tested
-Frontend skeleton established
-Connect front & back end - display retrieved data
-Log-in/sign-up functionality
-Test UserAuth Routes
-n/a
-Begun frontend testing
-Finished backend testing (UserAuth Routes)
-Connected front&backend (displaying data)
-Log-in / Sign-up functionality
-Delete habit button
-Begun work on updating habit streak feature
-Finish frontend testing
-Finish habit streak feature
-Styling
-n/a
-Styling finished
-Completed app functionality
-Finish Frontend tests
n/a
Rorie: Alot more in React. How to redirect. Cors troubleshooting. PUT & DELETE Requests
Keir: Ensure files are staged before committing.
Susan: How to create more meaningful tests
Liam: Further developed understanding of backend route testing
All: Coverage interface (/coverage/index.html)
Rorie: Sending PUT/DELETE request from browser / solution: Using .history /// Streaking updating logic
Keir: Database Local Vs. Hosted
Susan: Various frontend testing bits
Liam: using ElephantSQL / Solution: changing to Sqlite
Rorie: testing / Using PostGres&Elephant
Keir: testing / Using PostGres&Elephant
Susan: testing / Using PostGres&Elephant
Liam: testing / Using PostGres&Elephant
Rorie: Learn complex testing (Mock functions & data / promise.resolve/reject)
Keir: Learn complex testing (Mock functions & data / promise.resolve/reject)
Susan: Learn complex testing (Mock functions & data / promise.resolve/reject)
Liam: Learn complex testing (Mock functions & data / promise.resolve/reject)