how would I build a comments box? [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 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.

Related

Web development [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 5 years ago.
Improve this question
First of all hi to all, I am new at web development and I have some questions. I have started a web site few weeks ago(html,css,js) and now I don't know how to continue. what is the next step for my project and how can I practice without publish it in a server? Nowdays I am learning php and ruby but it is more complex to understand the back end of a web site.
Since you have already started a website, add more functionalities to it. This way, you can enhance the project and at the same time learn new things as you develop. For example, if the project is in HTML, learn Bootstrap and implement the same to the project. You can publish various versions of the project. If you do not wish to publish, you can work on it locally too.
You mentioned that you are learning PHP. Why not just throw in some data to the HTML using PHP and perform some CRUD operations on it? That would be a great way to learn!
https://www.w3schools.com/ is a great website to learn.
Wish you Goodluck and I hope I helped!

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/

Managing back office and front office of website [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'm working to a project and my aim is to create an html page to view the train/bus/tram timeboards.
So there is one html page for back-office(for the company) and one page for front-office(for the customers).
The company wants to change files in the page (pdf/links that can be viewed inpage) from back-office.
How can i manage the informations between back-office and front-office by using some simple stuff/programming languages?
Anyone has an idea?
Substantially I want to do something like this for front-office view:
http://codepen.io/anon/pen/NGxrQp <--Check this
OR
http://jsbin.com/mawevuwi/1#tab4
And then something more simple for back-office.
PS: I'm new at stackoverflow and sorry for my bad english explanation.
A back-office should be able to add, edit or delete content. Therefor you should use dynamic webpages, not static. You can use a database to store values. Make the front-office read-only and you're done.
You could also use a Content Management System (CMS) like WordPress.
Some more info:
A static webpage only shows what's in the files. A dynamic webpage could show you generated data or data not in the file itself but from a database for example. Databases use SQL (Structured Query Language). The 4 operations are abbreviated as CRUD:
Create
Read
Update
Delete
I recommand you start learning SQL & PHP if you want to continue with this. Other languages (rather than PHP) are possible.

How to implement Google Analytics and save daily statistics of a webpage in a database [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 would like to know how to implement Google analytics and make an SQL query from PHP to save daily webpage statistics.
Thank you for your answers.
There are a lot of issues that you will need to overcome to get this to work. It's not as simple as just adding a file to your site. You will first need to set up analytics on your site using the javascript that Google provides.
Next you will need to connect to the Google servers either using a PHP API like GAPI, curl or OAuth. You could also try a JSON solution. I personally like using the OAuth method for the ease of use. There are OAuth libraries that can do the heavy lifting, too.
After you have the data you need, you need to add it to the database. You can do this within the PHP for the request, or with AJAX. Both methods are decent. The SQL itself is up to you. If you are using some sort of CMS, try using their database methods instead of writing your own. If you are writing one from scratch, I would suggest the PDO API in PHP. It takes care of a lot of the security vulnerabilities you usually have with SQL and it's well documented.
All-in-all, there are a lot of moving parts to this process. I would suggest looking for someone who has all, or most, of the leg work already done before diving into it yourself.

Example Sign-up/Sign in using node.js [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 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/

Categories