Skip to content
This repository has been archived by the owner on Mar 8, 2018. It is now read-only.

jedireza/drywall

Repository files navigation

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

Drywall.js

A website and user system for Node.js. It's not the platform, not the framework and not a module.

What you create with Drywall is more important than Drywall.

Technologies Used

Server = [node.js, express, jade, passport, mongoose, emailjs, async] Client = [bootstrap, backbone.js, jquery]

Installation

  1. Download and unzip (or git clone) into a directory.
  2. Configure /app.js with mongodb and email credentials.
  3. Run app via "$ node app"

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.

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

To Do

  • Add uncaught exception handler.
  • Add account registration/sign-up to front end.
  • Extend registration and login with options for using Twitter/Facebook via the passport module.
  • Add notes component to account details using Note schema.
  • App should have option to run as a cluster.

License

(The MIT License)

Copyright (c) 2012 Reza Akhavan [email protected]

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.