GithubHelp home page GithubHelp logo

drywall's Introduction

This is a fork of Drywall

(for info on the original project see the Drywall project page: http://jedireza.github.com/drywall/ )

This fork adds 3rd party authentication (twitter, github) for signup and login. Also includes account / settings editing by user

TODO:

  • format / enhance display of 3rd party json on account page
  • allow association of new 3rd party id with existing account
  • allow removal of 3rd party id from existing account
  • remove console.logs and clean-up some rough edges in the code

Installation

  1. Download and unzip (or git clone) into a directory.
  2. Run "$ npm install"
  3. Configure /app.js with mongodb and email credentials.
  4. Configure config_example.json with 3rd party IDs / tokens and save as config.json
  5. Run app via "$ node app"

Note: To use the application with 3rd party authentication services locally access the app via 127.0.0.1:3000 (vs. localhost:3000). Otherwise the authentication callbacks will not work.

Setup

You need a few records in the database to start using the user system.

Run these commands on mongo. *Obviously you should use your email address.

db.admingroups.save({ name: 'root' });
var rootGroup = db.admingroups.findOne();
db.admins.save({ name: {first: 'Root', last: 'Admin', full: 'Root Admin'}, groups: [rootGroup._id] });
var rootAdmin = db.admins.findOne();
db.users.save({ username: 'root', isActive: 'yes', email: '[email protected]', roles: {admin: rootAdmin._id} });
var rootUser = db.users.findOne();
rootAdmin.user = rootUser._id;
db.admins.save(rootAdmin);

Now just use the reset password feature to set a password.

Login. Customize. Enjoy.

drywall's People

Contributors

fpp avatar jedireza avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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