Skip to content

jhsul/a3-persistence

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Assignment 3

I turned this in past the deadline but Professor Roberts said that it was okay :)

https://a3-jhsul.glitch.me

This website allows you to log your contacts persistently. You log into the application with your github account, and once you are logged in you have access to your contact book. You will be able to see some of your github info and a table of all your contacts. You can add new contacts, and edit/delete existing contacts. Contacst have a name, a phone number, and a country. I used the bootstrap css framework

Middlewares

app.use(session({...}))

This is a cookie manager for browser sessions. It's required by passportjs

app.use(express.json())

Lets you access request bodies as json objects

app.use(passport.initialize())

Starts the passportjs library

app.use(passport.session())

Runs authenticated sessions. Requires the session middleware above

app.use(express.static(...))

Serves static files from the public directory.

Custom redirect

I wrote a custom middleware to redirect the user depending on whether they are logged in or not

Technical Achievements

  • Github OAuth

About

Assignment #3 for Webware 2021 @ WPI

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • JavaScript 65.2%
  • HTML 28.4%
  • CSS 5.3%
  • Shell 1.1%