Skip to content

hannahlim213/Footprint

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Footprint

Footprint is a React application which easily calculates a user's eco-footprint based on the user's lifestyle. People can learn how to reduce their footprint by taking the quiz and seeing how they compare to the average.

Use the app:

Homepage

To run this source code:

  • Make sure MongoDB server is running
  • Run 'yarn run build' & then 'yarn start'

Built With:

  • React
  • Passport
  • Concurrently
  • Express
  • Mongoose
  • React Chart.js 2
  • see package.json for additional packages

Code examples

  • Passport - User authentification:
![Code](client/src/components/Video/assets/passport_auth.jpg)
  • Session Storage - Creating User Session (using jQuery click event):
router.get('/logout', (req, res)=>{
  res.localStorage.removeItem('jwtToken');
  res.clearCookie("user", {path:"http://localhost:3000/"});
  res.set('user', {expires: Date.now()});
  res.json(true);
});

Authors 🖋

Acknowledgments 🗣

  • **A big thank you to our instructors and TA's at Berkeley's Coding bootcamp!!

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 88.5%
  • CSS 7.0%
  • HTML 4.5%