Code Monkey home page Code Monkey logo

nodetutorial's Introduction

Getting Started

Forking Shikkic/nodeTutorial

First start by forking this repo. You can find the fork button at the top right of the page!

Then lets clone the repo to our desktop so we can make some changes and eventually push it to our heroku server.

Navigate to your Desktop via Git Bash, or terimnal, and enter the following. (EX: C:\Users\Shikkic\Desktop)

Make sure to insert your username into the url

$ git clone https://github.com/YOURUSERNAMEHERE/nodeTutorial

Heroku

Signing up for Heroku

Heroku is going to provide the free hosting for our node server, so if you don't have an account sign up now!

Don't worry it's most basic teir is free, so no credit card required!

Sign up here!

Creating our first Heroku node app

After you've logged in you should see a dashboard. Heroku uses what they call apps as servers, we can manage the content we upload to them and tell Heroku when to run it.

We don't have any Heroku apps yet, so why don't we make a new one.

Imgur

Give your app a unique all lowercase name and hit create app

Imgur

Connecting to Github

Let's link our Github account to Heroku so we can deploy our node server repo fast and easily

Imgur

Now we need to search for the repo we want to connect to our Heroku app

Imgur

We want to be able to have any changes we push to github automatically deploy, so lets enable this feature by click the Enable Automatic Deploys

Imgur

###Great! Now we've connected our app to our servers repo

Our server repo is connected now and anytime we push an update to the repo, the changes to our website will be automatically reflected by our server

Let's test it out and manually push our app to the server from the dashboard

Imgur

Viewing your site

So now that we've deployed our site, lets take a look at it shall we?

You can view your site after you manually deploy it here

Imgur

You can view your site after you manually deploy it here

Imgur

You can also view it by cickling this button at the top of the page at any time

nodetutorial's People

Contributors

shikkic avatar linxiaodai92 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.