Giter Site home page Giter Site logo

nemtab's Introduction

#[NEMTAB] NodeJS ExpressJS MongoDB Toastr AngularJS Bootstrap Seed

 I improved this project, adding Toastr (https://github.com/CodeSeven/toastr) for
 Popup Notifications, and creating a small set of REST APIs to perform login,
 logout, signup (using passport js as middleware) and some CRUD operations
 with Express JS and MongoDB.

 I remove Jade Templating, because i don't like it, so i implemented some
 little html partilals, using Angular JS template engine.

 Also added bower configuration file to handle JS browser dependencies.

 Added RequireJS.
 Added unit test base configuration with Jasmine and Karma.

 Renamed app.js in server.js.

 To start application :
    npm install // to install node modules dependencies
    bower install // to install bower dependencies
    node server.js

 To minify application:
    node_modules/requirejs/bin/r.js -o tools/app.build.js

Forked from btford/angular-express-seed and spiced with Twitter Bootstrap. jQuery added for convenience.

Start an awesome app with AngularJS + Bootstrap on the front, Express + Node on the back. This project is an application skeleton for a typical AngularJS web app for those who want to use Node to serve their app.

The seed contains angular libraries, test libraries and a bunch of scripts all preconfigured for instant web development gratification. Just clone the repo (or download the zip/tarball) and you're ready to develop your application.

The seed app shows how to wire together Angular client-side components with Express on the server. It also illustrates writing angular partials/views with the Jade templating library.

Note: Although Jade supports interpolation, you should be doing that mostly on the client. Mixing server and browser templating will convolute your app. Instead, use Jade as a syntactic sugar for HTML, and let AngularJS take care of interpolation on the browser side.

How to use angular-express-seed

Clone the angular-express-seed repository, run npm install to grab the dependencies and start hacking!

Running the app

Runs like a typical express app:

node server.js

Running tests

Coming soon!

Receiving updates from upstream

Just fetch the changes and merge them into your project with git.

Directory Layout

server.js              --> app config
package.json        --> for npm
config/             --> contains mongoDB and passport configuration
    database.js
    passport.js
models/             --> contains mongoDB simple user Schema
    users.js
    person.js
    thing.js
    models.js
public/             --> all of the files to be used in on the client side
  css/              --> css files
    app.css         --> default stylesheet
  js/               --> javascript files
    app.js          --> declare top-level app module
    controllers.js  --> application controllers
    directives.js   --> custom angular directives
    filters.js      --> custom angular filters
    services.js     --> custom angular services
    bower_components/            --> angular and 3rd party JavaScript libraries
      angular/
      angular-local-storage/
      angular-route/
      bootstrap/
      cryptojslib/
      jquery/
      noty/
app/
  api.js            --> api definitions
  routes.js          --> route for serving HTML pages, JSON and partials
views/
  index.html        --> main page for app
  partials/         --> angular view partials (partial jade templates)
    header.html
    nav.html
    register.html
    login.html
  auth/
    home.html
    person.html
    thing.html

Example App

A simple blog based on this seed.

Contact

For more information on AngularJS please check out http://angularjs.org/ For more on Express and Jade, http://expressjs.com/ and http://jade-lang.com/ are your friends.

nemtab's People

Contributors

mancioshell avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

nemtab's Issues

Broken main.js

Incorrect paths for

'angularLocalStorage' : 'angular-local-storage/angular-local-storage.min',
'cryptojslib' : 'cryptojslib/rollups/pbkdf2'

and even after fixing this problem still issues with not found util property as mentioned in already raised issue before

not an ssue, what is Join Set ?????

Hi,
Thanks for this code, I run it , it's working fine, but I did not understand what the purpose of "Join Set" , I click on it nothing happened.

and when you delete a person or a thing, it does not delete in the database, try delete something, then refresh your browser.

Thanks,

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.