Giter Club home page Giter Club logo

drywall's Introduction

    ____                            ____    _     
   / __ \_______  ___      ______ _/ / /   (_)____
  / / / / ___/ / / / | /| / / __ `/ / /   / / ___/
 / /_/ / /  / /_/ /| |/ |/ / /_/ / / /   / (__  ) 
/_____/_/   \__, / |__/|__/\__,_/_/_(_)_/ /____/  
           /____/                    /___/        

Drywall.js

A website and user system for Node.js. What you create with Drywall is more important than Drywall.

See a bird's eye view.

Technology

Server = [express, jade, passport, mongoose, emailjs, async]

Client = [bootstrap, backbone.js, jquery]

Test Drive

https://drywall.herokuapp.com/

  • username: root
  • password: h3r00t

https://drywall.nodejitsu.com/

  • username: root
  • password: j1ts00t

Note: The apps on Heroku and Nodejitsu have been modified so you cannot change the root user, the root user's linked administrator role or the root admin group. This was done in order to keep the app ready to test at all times.

Installation

  1. Clone the repository (or download/unzip) into a directory.
  2. Run $ npm install
  3. Rename /config.example.js to /config.js and set mongodb and email credentials.
  4. Run app via $ ./run.js or $ node run

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.

use drywall;
db.admingroups.insert({ _id: 'root', name: 'Root' });
db.admins.insert({ name: {first: 'Root', last: 'Admin', full: 'Root Admin'}, groups: ['root'] });
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 = { id: rootUser._id, name: rootUser.username };
db.admins.save(rootAdmin);

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

  • http://localhost:3000/login/forgot/
  • Submit your email address and wait a second.
  • Go check your email and get the reset link.
  • http://localhost:3000/login/reset/:token/
  • Set a new password.

Login. Customize. Enjoy.

Philosophy

  • Create a website and user system.
  • Write code in a simple and consistant way.
  • No home-grown modules or libraries.
  • Only create minor utilities or plugins to avoid repetitiveness.
  • Find and use good tools; frameworks, modules and libraries.
  • Use tools in their native/default behavior.

Features

  • Basic front end web pages.
  • Contact page has form to email.
  • Login system with forgot password and reset password.
  • Signup and Login with Facebook, Twitter and GitHub
  • User system with seperate account and admin roles.
  • Admin groups with shared permission settings.
  • Administrator level permissions which override group permissions.
  • Global admin quick search component.

License

MIT

githalytics.com alpha

drywall's People

Contributors

jedireza avatar iamthechad avatar craigedmunds avatar danielktaylor avatar

Watchers

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