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
107 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 52

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 52

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 52

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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Never store passwords in plain text or just their hash: it seems a no-brainier, but there are still plenty of people doing that. I present the why and how on this subject, offering my own real life solution that you can implement right away, bringin…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

910 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

23 Experts available now in Live!

Get 1:1 Help Now