Hi everyone, It is about more than 1 month that I haven’t post anything cause I was working on a backbone project and during this time I’ve learned some new tricks which you need to know them if you really want to write a real application.
As I promised before, today i’m going to talk about authentication with PassportJS. Passport is one of the capable node modules which can be used for local authentication or even using it for integrating with Facebook or Twitter and …
Basically in passport we set up some strategies and then pass the passport middleware into our application and then passport will take care of most of the things.
Strategies can be local for your local authentication , or Facebook for authentication with Facebook .
I’m going talk about Passport API a little bit and building a sample app which have local, Facebook and Twitter authentication. And also i’m going to use MongoDB as database of this application.
Application Overview :
- Installing Passport and adding to app
- Adding passport middlewares
- Database and Models
- Setting the strategies
- Function Handlers
Hi everyone !!
Today i’m going to show you my simple authentication practice. There is lots of good authentication modules out there which can be used as middleware like PassportJS and Everyauth and they are also very useful for integration your web site with social networks like Facebook and Twitter. I will cover both the mentions tools in future posts but today we are going to build our authentication functionality on our own !!
Before we start I should mention that like always I used MongoDB as a database for saving and loading our users. And I integrate it with our app using Mongoose module. So make sure you have them installed or if you using my source files first run
npm install . Also make sure you are running mongo server by running
mongod in new shell.
- Module Dependencies
- Database and Models
- Middlewares and configurations
- Helper Functions
Hi guys , now it’s a time to make our hands dirty with Backbone and Node.js and of course Express framework !! Today I want to show you how to make and contacts manager with Backbone. Also I use Node.js for backend and MongoDB as a database of this project.
- Setting Up Database
- Setting Up Server
In my first post on my brand new blog I want to talk about my new discoveries on NodeJS. As you can see in NodeJs site :
What We Are Going To See?
I’m going to show you how to make a simple server. For now I just render two pages on this server, home and about. It’s all with pure NodeJS and I don’t use any framework. If you are familiar with amazing framework of NodeJS, Express you would say it could be much more easier with Express. I agree but I believe first we should learn how to deal with NodeJS and after that go for frameworks.
By the way i’m going to cover Express in future posts in this blog !!