Giter Club home page Giter Club logo

a3-jacobvs's Introduction

Assignment 3 - Persistence: Two-tier Web Application with Database, Express server, and CSS template

myNotes

Link: https://morning-reaches-44384.herokuapp.com/

The goal of this application was to develop a simple CRUD note taking app. This webapp demonstrates a simple implementation of CRUD operations with node using express, passport.js, and mongodb. Some challenges I faced in getting this app working included difficulties learning express and ejs files, working with passport/OAuth, and sending requests from JS (client side) while still using a csrf token. I chose to use passport with github oauth authentication simply because it seemed easy enough to get working (which it wasn't exactly!) and I wanted to gain experience working with OAuth / SSO. I used bootstrap as my CSS framework as I like the simplicity and have used it before. Express middleware packages are as follows:

  • logger (morgan) to log messages and debug the application
  • cookie parser, which parses and populates the req.cookies object for easy access
  • session to maintain state between requests
  • passport for oauth authentication
  • csrf which is a middleware that prevents CSRF attacks by adding a csrf token and validator to requests
  • error handler middleware which catches errors and displays them
  • router level middleware to handle incoming requests based on their page

Technical Achievements

  • Achievement 1: I used OAuth authentication via the GitHub strategy using passport and mongodb to save users
  • Achievement 2: Used heroku for remote deployment
  • Achievement 3: Acheieved 100% on all 4 lighthouse tests

Design/Evaluation Achievements

  • N/A

a3-jacobvs's People

Contributors

charlieroberts avatar jacobvs avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.