create account

Horizons Week 3 (Part 1) - Backend Baby! by robertdurst10

View this thread on: hive.blogpeakd.comecency.com
· @robertdurst10 ·
$13.58
Horizons Week 3 (Part 1) - Backend Baby!
<center><h1>Horizons Week 3 - Backend Baby!</h1></center>

This week was an especially exciting week as I got to attend TechCrunch Disrupt SF AND I got to hear Vitalik Buterin and CO. speak twice...

So, I will split this post into two, allowing me to speak in more detail about my crypto adventures. So, if you are less interested in what I learned and what I ate and more interested in Vitalik Buterin, ignore this post and check out my next one.


<h2>What I Learned: Backend Basics</h2>

**Install Packages:**
<center>https://upload.wikimedia.org/wikipedia/commons/thumb/d/db/Npm-logo.svg/440px-Npm-logo.svg.png</center>
First off, NPM in itself is a reason to use Node. NPM, for those who are unfamiliar is the Node Package Manager. For almost anything you want to do, there is likely a package you can install. Here are a few of the packages we use to get a server up and running:
* Handlebars: used for templating, according to their website "minimal templating on steroids"
* Express: used for server
* Body-parser: needed for post requests on the server
* Express-validator: allows for validation server-side
* Nodemon: allows for the server to restart on every save/change of code **VERY HELPFUL**
* Mongoose: allows your server to easily connect to mongoDB

**Set-up Database:**

<center>https://mlab.com/base/img/mLab-logo-dark.png</center>

We used a service called <a href="https://mlab.com/">mLab</a> to host our MongoDB database. While you only get 0.5gb for free, this is great for hackathons, testing, and quick deployment. 

**Connect server and Database:**
Connecting the server to the database is quite easy. We use a .sh file on the mac and gitignore to securely connect and hide our credentials when committing our code to GitHub.

**Set-up routes:**
Obviously the most important part of a server is setting up the routes. We have to deal with the different necessary database interactions required by the client. With express, this is very easy. You simply specify the method, the path, the server action, and the return message.

***

<h2>What I Ate</h2>

<h4>HUGE weekly upgrade: MealPal</h4>

**Coriander Gourmet Thai**

<center>https://s3-media4.fl.yelpcdn.com/bphoto/l71p1vjvxdT6RKRakPEFlQ/o.jpg</center>

Link: https://www.yelp.com/biz/coriander-gourmet-thai-san-francisco

**La Briciola Ristorante Italiano**

<center>https://s3-media3.fl.yelpcdn.com/bphoto/zynH3dVWGi_UksV_G0z3rQ/o.jpg</center>

Link: https://www.yelp.com/biz/la-briciola-san-francisco?osq=La+Briciola+Ristorante+Italiano

**AK Subs**

<center>https://s3-media1.fl.yelpcdn.com/bphoto/1jRP9fBGmhZkP0KEwzeriA/o.jpg</center>

Link: https://www.yelp.com/biz/ak-subs-san-francisco

**Pho 2000**

<center>https://s3-media4.fl.yelpcdn.com/bphoto/ZNdFnblbLoEl8_oSQSB1-g/o.jpg</center>

Link: https://www.yelp.com/biz_photos/pho-2000-san-francisco
👍  , , , , , , ,
properties (23)
authorrobertdurst10
permlinkhorizons-week-3-part-1-backend-baby
categorylife
json_metadata{"tags":["life","san-fransisco","coding","horizons","javascript"],"image":["https://upload.wikimedia.org/wikipedia/commons/thumb/d/db/Npm-logo.svg/440px-Npm-logo.svg.png","https://mlab.com/base/img/mLab-logo-dark.png","https://s3-media4.fl.yelpcdn.com/bphoto/l71p1vjvxdT6RKRakPEFlQ/o.jpg","https://s3-media3.fl.yelpcdn.com/bphoto/zynH3dVWGi_UksV_G0z3rQ/o.jpg","https://s3-media1.fl.yelpcdn.com/bphoto/1jRP9fBGmhZkP0KEwzeriA/o.jpg","https://s3-media4.fl.yelpcdn.com/bphoto/ZNdFnblbLoEl8_oSQSB1-g/o.jpg"],"links":["https://mlab.com/","https://www.yelp.com/biz/coriander-gourmet-thai-san-francisco","https://www.yelp.com/biz/la-briciola-san-francisco?osq=La+Briciola+Ristorante+Italiano","https://www.yelp.com/biz/ak-subs-san-francisco","https://www.yelp.com/biz_photos/pho-2000-san-francisco"],"app":"steemit/0.1","format":"markdown"}
created2017-09-24 02:06:27
last_update2017-09-24 02:06:27
depth0
children0
last_payout2017-10-01 02:06:27
cashout_time1969-12-31 23:59:59
total_payout_value10.518 HBD
curator_payout_value3.058 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length2,837
author_reputation5,401,785,748,657
root_title"Horizons Week 3 (Part 1) - Backend Baby!"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd0
post_id15,755,053
net_rshares3,898,899,793,112
author_curate_reward""
vote details (8)