Git Product home page Git Product logo

imprint's Introduction

Imprint - User Authentication with MEAN

license GitHub release

Imprint is a full-stack single page app with the MEAN(MongoDB, Express, Angular and Node) architecture, OAuth 2.0, SPA and RESTful API. Thanks for Simon Holmes, who is the author of Getting MEAN with Mongo, Express, Angular, and Node, gave me the basic framework to working on.

Imprint Workflow Flow

Project Structure

imprint
├── app_api # RESTful API
│   ├── config
│   │   └── passport.js # Check whether or not the credentials informatic (email and password is valid)
│   ├── controllers
│   │   └── authentication.js
│   ├── models # MongoDB Connection, Models and Schemas
│   │   ├── db.js
│   │   └── users.js # Define models, functions of models and schemas of users
│   └── routes
│       └── index.js/
├── app_client # AngularJS App
│   ├── app.js
│   ├── auth
│   │   ├── login
│   │   │   ├── login.controller.js
│   │   │   └── login.view.html
│   │   └── register
│   │       ├── register.controller.js
│   │       └── register.view.html
│   ├── common
│   │   ├── directives
│   │   │   ├── footerGeneric
│   │   │   │   ├── footerGeneric.directive.js
│   │   │   │   └── footerGeneric.template.html
│   │   │   ├── navigation
│   │   │   │   ├── navigation.controller.js
│   │   │   │   ├── navigation.directive.js
│   │   │   │   └── navigation.template.html
│   │   │   └── pageHeader
│   │   │       ├── pageHeader.directive.js
│   │   │       └── pageHeader.template.html
│   │   └── services
│   │       └── authentication.service.js
│   ├── home
│   │   ├── home.controller.js
│   │   └── home.view.html
│   ├── index.html
│   └── lib
│       ├── angular-route.min.js
│       ├── angular-route.min.js.map
│       ├── angular-sanitize.min.js
│       ├── angular-sanitize.min.js.map
│       ├── ui-bootstrap-custom-0.12.0.min.js
│       └── ui-bootstrap-custom-tpls-0.12.0.min.js
├── app.js # Node.js and Express app
├── bin
│   └── www
├── node_modules # Node.js Modules
└── public # Images, CSS and Javascript Files
    ├── angular
    ├── bootstrap
    │   ├── css
    │   ├── fonts
    │   └── js
    ├── javascripts
    └── stylesheets

Version

  • v0.0.1: stable version
  • v0.0.1: init verison

Install & Run

git clone https://github.com/lushen/imprint.git
cd imprint
npm install
set JWT_SECRET=anyThingYouWant
npm start

Before running Imprint, you should make sure you have installed node.js, npm, git and mongodb already. If there is no hidden file, .env, in Imprint project, you should add a .env file at the root folder and write JWT_SECRET=anyThingYouWant in it(you can replace anyThingYouWant in any words).

Platform

  • Heroku

License

The MIT License (MIT)

What Next?

  • Add users profile page when they sign in or sign up
  • Add third-party authentication, such as Facebook and Tiwtter
  • Set users api authentication and extend current api
  • Switch [email protected] to [email protected] (or React, maybe...)
  • Push real-time data to the client side
  • Switch mongodb to rethinkdb (depend on needs...)
  • Add CSS and JS text animation effect and loading page
  • Add verification email function when registered successfully
  • Allow users to change the password
  • Add more credentials notifications into register and login page
  • Add gulp file to compress the project
  • Add more information detail users schema, such as register date and lastest login date
  • Set up comments system
  • add Logo and shields.io and align them to the center of README.md

imprint's People

Watchers

James Cloos avatar  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.