GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - jphill0808/habitlogger: Daily life event tracker with data visualization.

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

272 Commits
272 Commits

Folders and files

NameName
Last commit message
Last commit date
client
client
 
 
db
db
 
 
media/icons/Linearicons
media/icons/Linearicons
 
 
server
server
 
 
.env.default
.env.default
 
 
.eslintrc
.eslintrc
 
 
.floo
.floo
 
 
.flooignore
.flooignore
 
 
.gitignore
.gitignore
 
 
.travis.yml
.travis.yml
 
 
README.org
README.org
 
 
package.json
package.json
 
 
webpack.config.js
webpack.config.js
 
 

Repository files navigation

Stone and Sand

Daily life event tracker with data visualization. On the client side, ‘event’ references ‘habit’. To run the app, install dependencies with npm install. Run these scripts: ‘npm run react-dev’, ‘npm run server-dev’, ‘npm run db/seed.js’, then open the app at localhost:3000.

Tech Stack

  • Tech Stack:
    • MongoDB
    • Express
    • React
    • Node
  • Additional technologies:
    • Axios
    • Chart.js
    • Mongoose
    • Webpack

Server Endpoints

REQUEST

METHODURLREQUEST.BODYEXAMPLE
GET/
POST/signupJSON{username: ‘Stone’, password:’sandstone’}
POST/loginJSON{username: ‘Stone’, password:’sandstone’}
GET/username
GET/api/username/habit
POST/api/username/habitJSON{habit:’smoking’, limit:’5’, unit:’cigars’, username:’Stone’,
timeframe: ‘week’}
POST/api/username/logJSON{habit:’running’, unit:’1’, timestamp: ‘2017-11-28T00:23:28.341Z’}

RESPONSE

METHODURLSUCCESS TYPESUCCESS CONTENTFAIL TYPEFAIL CONTENT
GET/index.html
POST/signupstringusernamenullnull
POST/loginstringusernamenullnull
GET/usernamearrayhabit listarrayempty
GET/api/username/habitobjecthabit datanullnull
POST/api/username/habitarrayupdated habit listarrayempty
POST/api/username/logobjectoccurrencenullnull

Directory Structure

  • client/
    • public/
      • bundle.js
      • index.html
      • style.css
    • src/
      • Auth
        • Auth.jsx
      • Chart.jsx
      • DataLogger.jsx
      • EventCreator.jsx
      • EventSelector.jsx
      • index.jsx
      • Login.jsx
      • Table.jsx
      • TopBar.jsx
  • CONTRIBUTING.org
  • db/
    • data/
    • index.js
    • schemas.js
    • seed.js
  • .eslintrc
  • .gitignore
  • node_modules/
  • package.json
  • package-lock.json
  • README.org
  • server/
    • index.js
  • webpack.config.js

Jest Setup

  • Guide to Test Driven Development:
    • Create a test folder (__tests__) on the same path level as your component
    • One file per component
    • Follow the Red -> Green -> Refactor workflow
    • Run your test in watch mode to get the real-time update
    • Enjoy TDD 😂

About

Daily life event tracker with data visualization.

Resources

Readme
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.