Coder Social home page Coder Social logo

djorborn / mini-loginschema Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 235 KB

User Auth mini app, I wrote a guide of sorts on medium ->

Home Page: https://medium.com/@djorborn/login-schema-1b3407db5e93

JavaScript 41.40% CSS 14.82% HTML 43.78%
javascript expressjs nodejs cookie-parser body-parser pug mongoose register

mini-loginschema's Introduction

Mini App

LoginSchema

Simple Local User Authorization and Registration

For this mini app, I want to use Mongoose to create a collection, insert, delete, find and update documents in it. This is my first go with mongoose, I have a little experience with using mongodb module though.

Goals

  1. User can create a new account and login.
  2. User can update their information.
  3. User can delete their account.

Tools

I will be using express, pug, body-parser, cookie-parser and mongoose. I will use cookies to make a simple local session for the user.

  1. Express (Web-Framework)
  2. Pug (View Engine)
  3. Body-Parser (To read form inputs)
  4. Cookie-Parser (To control cookies! yummy!)
  5. Mongoose (To connect to mongodb)
  6. W3CSS (To Look Pretty)
  7. Jquery (For AJAX)

Register

Simple form page for user to register new account.

Login

The login page will be a simple form with a post method pointing to /login.

Home Area

A special place only ones with the key can get into.

Dashboard

Dashboard page loads current user information and lets the user update and save it.

Logout

The user can logout of the session

Delete Account

User can choose to remove all information from the database.

mini-loginschema's People

Contributors

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