Buy this Domain

Community Discussions

Explore the latest discussions and community conversations related to this domain.

Where do I start? Ember, Express, Node, & MongoDB, Oh my!

Main Post:

Bonjour,

I've done a lot of front-end stuff in the past years, but I have extremely little to no experience with web application frameworks. So, I want to build something to teach myself a bit. However, I'm having a massive amount of trouble understanding how some of these things work together.

What I'm trying to do is build a fairly simple reference engine. It needs to be able to query, write to, and display results from a database.

I was well on my way with this using EmberJS... Up until I got to the database part. I need the app to fetch info from MongoDB (in JSON form, apparently). Frankly, I have no idea how to use a database with EmberJS. I've read dozens of articles and sat through most of the Tuts+ Courses on it, but databases don't seem to be mentioned anywhere.

I've heard the following:

  1. Ember-data can do something with data. I don't know how Ember-Data relates to Ember, or how to use it. Most of the resources I've found on it are old, and say it's not ready for production.
  2. Connecting to a database requires server-side JavaScript, namely NodeJS.
  3. Many articles reference Express as a web application framework which can connect. I have no idea how Express, Node, and Ember would interact with one another. (As in, having Express fetch the information from MongoDB, and deliver it to Ember).
  4. There is something called ember-sass-express-starter that claims to be a "Boilerplate for Ember, Sass, Express, MongoDB." Sounds great. Loading it up to do some tests faces me with a blank screen.
  5. Stuff happens, things work. Back-End.

So, if anyone has any, I need to guidance.

What I need Ember to do:

  1. Connect to MongoDB.
  2. Get queried info.
  3. Display that info.

Connecting is the part I'm not understanding. Do I need Express? Node? Ember-Data? Ember-CLI? I posted something similar on the Ember Discuss and mostly had tools thrown at me, with very little explanation.

EDIT: Thanks all, some posts were a lot more helpful than others. I got what I needed.

Top Comment:

It's baffles me that you would start with Node and Mongo considering that you have no backend experience. Contrary to what hipsters would have you believe, that stack isn't meant for general purpose web dev. It has pretty narrow application range and requires advanced knowledge to be utilized correctly.

Why don't you start first with a relational DB (sqlite, no setup required) and a micro framework (sinatra/flask/silex/whatever). You won't even need a database at first.

Forum: r/webdev

Just picked up a lb of some pineapple express, oh how I love California

Main Post: Just picked up a lb of some pineapple express, oh how I love California

Top Comment:

Everyone is buying zips and lbs., and I'm just sitting here playing with my stoner boner

Forum: r/trees

Girls' Generation-Oh!GG - SMTOWN 2022 : SMCU EXPRESS (Teaser Images)

Main Post: Girls' Generation-Oh!GG - SMTOWN 2022 : SMCU EXPRESS (Teaser Images)

Top Comment:

Holy shit it’s actually happening.

Forum: r/kpop