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
211 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 57

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 57

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 57

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

Do you have a plan for Continuity?

It's inevitable. People leave organizations creating a gap in your service. That's where Percona comes in.

See how Pepper.com relies on Percona to:
-Manage their database
-Guarantee data safety and protection
-Provide database expertise that is available for any situation

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Azure Functions is a solution for easily running small pieces of code, or "functions," in the cloud. This article shows how to create one of these functions to write directly to Azure Table Storage.
This post looks at MongoDB and MySQL, and covers high-level MongoDB strengths, weaknesses, features, and uses from the perspective of an SQL user.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

734 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