Giter VIP home page Giter VIP logo

attribute's Introduction

c36 NodeJS+PostGres Backend Seed Project

Introduction

This repo is designed to demonstrate a nodeJS backend. The idea is looking at the examples in this repo to help you build out your own to support your application. The design is explained in more detail below but set up so you don't need to completely understand how it works to get your application up and running. But we challenge you to understand the code, try to improve it, or maybe add tests!

Getting things up and running

(This assumes you have a cloud9 account!)

To get setup the project in cloud9 you will need to do the following:

  1. Create a new workspace. Fill out the details and make sure to put the https github url in "Clone from Git or Mercurial URL" and choose the node.js template. Check out workspace creation for more detail. Once you finish you should see the following:

Fill this out!

  1. In the bash (blue window in picture above) you need to run npm install. This command will install all the dependencies listed in the package.json file into /node_modules directory. Please do not modify files in this folder and if you want to learn more about package.json you should!

  2. You will need to have a config.js in your /backend directory. You do not need to worry about this. We will provide you with this file. This file will need to look like the following:

'use strict';

const heroku = { DATABASE_CONNECTION_URL : "postgres://username:password@heroku-postgres-host:heroku-postgres-port/heroku-database-name?ssl=true" };

module.exports = heroku;

  1. Now you should be able to start the application by running npm start in the bash (It is important that you run this from the top level directory). The application has some relative paths that depend on the command running on in this directory.

  2. Get excited because you are done! Click on the Preview --> Preview Running Application in the menu bar. This will open up a window with the url you can use to access your application!

Deeper Dive into the project

I tried to separate different concepts into sections. If you are looking for more information on specific pieces of the project check out the sections below.

The /frontend folder - an introduction to the frontend folder

The /backend folder - an introduction to the backend folder

Using the postgres database - an introduction to using postgres

attribute's People

Contributors

janderson24 avatar jonterufus avatar kateryzhenko avatar danlafeir avatar

Watchers

James Cloos avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

jonterufus

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.