Giter VIP home page Giter VIP logo

express-angular's Introduction

Express Angular Seed with EveryAuth and Bootstrap

This repo is inspired by [Angular Express Seed] (https://github.com/btford/angular-express-seed).

I could not find a single example application that worked fine with oauth. I always wanted a setup with angular, server side ( rails or node! ) exposing api's with oauth for authentication and any nosql db. I couldnt find any so I started writing my own. This would be my ideal setup for a project as well. Eventually I plan to expand this setup to include all the technologies I mentioned above.

Start an awesome app with AngularJS 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 app shows how to wire together Angular client-side components with Express on the server and have OAuth setup, so that you dont have to worry about authentication of your user.

Note :

Unlike Angular Express Seed this project uses html itself as the templating engine which I personally find more comfortable.

How to use

Prepare your environment

Clone the express-angular repository

You might need to download some node modules

npm install

Set the following environment variables if using Twitter authentication. These defaults are from the everyauth module, but you should get your own at Twitter's Developer site

TWITTER_CONSUMER_KEY=JLCGyLzuOK1BjnKPKGyQ
TWITTER_CONSUMER_SECRET=GNqKfPqtzOcsCtFbGTMqinoATHvBcy1nzCTimeA9M0

Running the app

Runs like a typical express app:

node app.js

Or you can run it this way to automatically reload any changes you make

nodemon app.js

References

express-angular's People

Contributors

bryant1410 avatar ganarajpr avatar paullang 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  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  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  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

express-angular's Issues

After authentication, nothing happens?

Hi!

This is a really nice and to the point skeleton.

However, after I authenticate with Twitter, I get redirected, but nothing changes in the GUI. I just can login again if I want to, while I expected to see the (json) posts.

Is there something I miss here?

Anne

Where is Mongodb??

where is mongodb in repo??

And, can you show how to use partials with html??

how to use express without view engine?

Hi,
I'm a new learner and trying to do something with angular and express, just like this repo.
But a small question:
how to use express without view engine? I mean, I wanna use html files in angular's route

that means like this:

$routeProvider.when('/', { templateUrl: '../../ .html' .... });

I have saw your angular's route.js. Your templateUrl is a path that matched with express' route, right?
And express render the html files to browser

But I'm quite uncomfortable with it. I don't think this is a good solution to a single page web app.

Any solutions ?

has no method 'register' error

I am getting the following error on running node app.js

H:\nodeproj\express-angular\app.js:94
app.register('.html', require('ejs'));
^
TypeError: Object function app(req, res){ app.handle(req, res); } has no method
'register'

please help me to get it running? I am new to node.js and angular.
I have completed angular tutorial which is running fine.

thanks,
Krishna

Updates to this project?

Hi, great work on this so far. I was wondering if you were planning any updates. It appears a bit out of date w/ newer versions.

Thanks

Kyle

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.