Skip to content

rorieArmstrong/habit-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

habit-app

Habyte

Instructions for use

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

For Tests:

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

Rorie, Keir, Liam and Susan

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.

Standups

Tuesday

What we achieved yesterday.

-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.

What we aim to achieve today.

-Build the routes for the API.
-Create a basic frontend.
-Flesh out log in and sign up.

Any blockers (things that are going to stop you achieving you aim)

-LogIn/SignUp can't be started until UserAuth routes have been established

Wednesday

What you achieved yesterday.

-Routes established(api/ user auth)
-API routes tested
-Frontend skeleton established

What you aim to achieve today.

-Connect front & back end - display retrieved data
-Log-in/sign-up functionality
-Test UserAuth Routes

Any blockers (things that are going to stop you achieving you aim)

-n/a

Thursday

What you achieved yesterday.

-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

What you aim to achieve today.

-Finish frontend testing
-Finish habit streak feature
-Styling

Any blockers (things that are going to stop you achieving you aim)

-n/a

Friday

What you achieved yesterday.

-Styling finished
-Completed app functionality

What you aim to achieve today.

-Finish Frontend tests

Any blockers (things that are going to stop you achieving you aim)

n/a


What we have learned

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)

What challenges we overcame

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

What we struggled with

Rorie: testing / Using PostGres&Elephant
Keir: testing / Using PostGres&Elephant
Susan: testing / Using PostGres&Elephant
Liam: testing / Using PostGres&Elephant

What we would do differently next time

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)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •