Example Sign-up/Sign in using node.js [closed] - javascript

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I'm new on using node.js
Surfing around the web i couldn't find any example of code of a simple sign-up/sign-in that could also show me how to manage database in node.
I mean the app.js page for server and the related client-side html page, and their relation. Can someone help me or give some useful link i couldn't find?
using Cassandra and i.o. socket, it'd be the best help.

You can use Passport library http://passportjs.org/ , there should be an example there. You can also use https://npmjs.org/package/passport.socketio if you want to login by socket.io

I recommend using http://passportjs.org
It has support for simple username/password authentication as well as OAuth etc
http://passportjs.org/guide/username-password/
There's also a good tutorial here:
http://danialk.github.io/blog/2013/02/23/authentication-using-passportjs/

Related

Stuck with frontend. Need help to connect to backend (Node.js/Express/MySQL) [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 days ago.
Improve this question
I am having some trouble with understanding the backend in a web architecture.
I have done my front webpages with css but i did not put any javascript.
The assignment requires me to use Node.js, Express, Mysql to build a login system, display of resources when requested.
Here are some questions i am still figuring out.
How do i connect my frontend to my backend?
Am i suppose to have some form of javascript in the frontend for connection to backend?
How does a web api play apart in this project?
Apologies for my open ended questions as i don't know what i don't know.
Thank you for your help guys.
I would appreciate if you have any online links for me to study into it.
I am currently stuck with just a HTML and CSS file.

Firebase with JavaScript [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
How to secure firebase code,I mean can anybody edit its code through google chrome console like view items or other things or there is any thing to prevent it?I am fairly new and only now the basics.
Your firebase code is sitting with the rest of your website code. I do not believe there is any major issue unless you are using a client side rendered framework for your web application and have left your configuration keys for firebase in the frontend and on top of that your firebase access rules are set to public. Setting the proper firebase rules - you may want to read this: https://firebase.google.com/docs/database/security/
is most important. This applies to all Storage, Database and Authentication.

How to import an Excel file to an HTML page [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
first of all let me tell you that im sorry for my bad english.
i'm working on a project(HTML5,JS,CSS3) and i have to import excel file to a table of HTML.So if u can give me some help ill appreciate that .ty anyway
To do this you need a server side library, however you must not install MS Office on a server. If you look at the Stack Overflow answer from Ian here it recommends a number of products that you can use.
What server side technology and language do you use? Node,ASP.NET? Every language has its own libraries for this job.
If However you prefer not to do it via the server then you can use the FileReader API and this post.
http://codetheory.in/parse-read-excel-files-xls-xlsx-javascript/

how use postgresql with javascript? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I am new in JavaScript and i want to create a page which store data in database so please help me and suggest me what i read regarding storing the data ?
If you only have little knowledge of Javascript and you're trying to have persistent data, I would recommend looking into localStorage and sessionStorage for the user session.
If, on the other hand, you're looking into storing data to a proper non-volatile database like PostgreSQL, but still has got only a bit of Javascript knowledge, I would recommend Meteor.js, which is a full-stack Node.js (javascript) framework and is very easy to use.
It does use MongoDB by default instead of PostgreSQL, but for prototyping does the job perfectly.
Have a look here https://www.meteor.com/

how would I build a comments box? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I'm interested in creating my own comments box for my website. I want it to be very similar to facebook's commenting system. How difficult would this be and what language is the best for something like this? Also, could someone point me towards some documentation that would help me learn how to do something like this?
Using Rails for the back-end, but could build the box with php preferably using heroku or mysql databases.
If you want to create comments box like Facebook, then you will have to use some server sided scripting technology like PHP, Servlets or any other which does the same thing as these do.
And you will also have to learn DATABASES like mysql, Oracle, Microsoft SQL, etc.
Since these will be used to store comments and retrieve Comments.
My suggestion will be use PHP And MySQL because they are free to use and you can learn these from W3Schools.com.

Categories