Go Premium for a chance to win a PS4. Enter to Win

x
?
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
Medium Priority
?
417 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 60

Assisted Solution

by:Julian Hansen
Julian Hansen earned 2000 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 60

Accepted Solution

by:
Julian Hansen earned 2000 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 60

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 Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
Article by: evilrix
Looking for a way to avoid searching through large data sets for data that doesn't exist? A Bloom Filter might be what you need. This data structure is a probabilistic filter that allows you to avoid unnecessary searches when you know the data defin…
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

879 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