Solved

NodeJS, Parse-server, express basic tutorial to write and read data from a html page. Where can I find one?

Posted on 2016-09-29
5
77 Views
Last Modified: 2016-11-10
Hello all,
    I am having trouble finding an absolute, bare bones from scratch tutorial. I have written an app in node JS that writes directly to and reads from MongoDB, I made a reverse proxy that is written in nodejs  that points my domain subfolders to different ports for parse-server and parse dash (eg: site.com/parse, site.com/dash).

I see tutorials on the parse wiki and things of that nature, but they just do a section at a time, and do not seem to tie things together in a way that makes sense to me. Is there any sort of step by step tutorial that anyone knows of that starts with the basics, just as, you make a file called something.js, you put require =("parse") or whatever it needs,  it creates the server port, then shows how to use an html page to write data to parse, and then read it back to the page. I am not sure why I can not grasp how parse works vs just simply writing to mongo, but the rest of my pals who are working on a project that I am trying to help on are all using it and I just can not find a tutorial that explains exactly why you would want / need parse over just writing to mongodb directly as I had before. I would like to know, but can not find good enough explanations, even in their official documentation, it just is not "clicking" for me. Even just a single application that uses node, parse, express, and has a form that writes and reads something like a user registration form, or just simple form data and then displays it would make all the difference.

If anyone knows a full on tutorial I can look at, I would greatly appreciate it!

Thanks,
0
Comment
Question by:MostHated
  • 3
  • 2
5 Comments
 
LVL 51

Assisted Solution

by:Julian Hansen
Julian Hansen earned 500 total points
ID: 41823089
I found the following to be quite useful

https://zellwk.com/blog/crud-express-mongodb/

It goes through the process of setting up node, installing the various dependencies as well as installing and writing to MongoDB.

It uses the body-parser to parse form data - I changed that to multer because I need to accept files as well but if you are not doing multipart form data you can stick to body-parser.
0
 
LVL 1

Author Comment

by:MostHated
ID: 41823411
I actually used that exact same one to learn to write to mongodb, it is a very good tutorial, the only issue is it is not using "parse-server" which is something that ends up interacting with  and from what I can tell managing mongodb on its own, that is where I am having the issue. I can not find much about how to properly setup a new app from scratch to use parse-server. They have examples, but I could really use that like the one you linked above that specifically relates to it.
0
 
LVL 51

Accepted Solution

by:
Julian Hansen earned 500 total points
ID: 41824190
I am assuming you have seen the Tutorial videos on the Parse-sever website that use the following example on GitHub

https://github.com/ParsePlatform/parse-server-example
0
 
LVL 1

Author Comment

by:MostHated
ID: 41824281
Edit, I take back everything I said below, this seems to be perfect! You said there is a video somewhere that explains it?

The only videos I have seen were ones that just explain how parse is now free, and why its great, and things of that nature, and I seem to only find things about "migrating your current app to parse" or "how to setup parse server" and things of that nature. I have it installed, (http://syntaxlabs.io/parse and http://syntaxlabs.io/dash) but am looking for a quick and easy useage guide compared to writing things directly to mongo outside of parse.  I am hoping to come across something along the lines of "ok, here is how you install parse, this is how you initialize it in your app, this is how you make a web form that can write data to it by using this, this and this,, and then here is how you display it". Something very basic, so I can just see how it all works. I see the parse examples and what not, but they keep wanting you to use Heroku, or other hosted things and what not. I do not want / need any of that.
0
 
LVL 51

Expert Comment

by:Julian Hansen
ID: 41824539
The videos on the link below - I went through them - gave a good overview and some useful information

http://blog.parse.com/learn/parse-server-video-series-april-2016/
1

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Read about achieving the basic levels of HRIS security in the workplace.
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now