Skip to content

gabetocci/mighty-bastion-60549

Repository files navigation

node-js-getting-started

A barebones Node.js app using Express 4.

This application supports the Getting Started with Node on Heroku article - check it out.

Running Locally

Make sure you have Node.js and the Heroku CLI installed.

$ git clone https://github.com/heroku/node-js-getting-started.git # or clone your own fork
$ cd node-js-getting-started
$ npm install
$ npm start

Your app should now be running on localhost:5000.

Deploying to Heroku

$ heroku create
$ git push heroku master
$ heroku open

or

Deploy to Heroku

Documentation

For more information about using Node.js on Heroku, see these Dev Center articles:

$sudo service postgresql start CREATE TABLE book ( title varchar(50), author varchar(50) );

TODO

Add to Dog Attributes

  • color
  • size Change dog_owner to person
  • associate Dog.hasMany(Person, through: 'DogOwner')

sudo apt-get update sudo apt-get install postgresql sudo service postgresql start

sudo passwd postgres su - postgres psql -c "ALTER USER postgres WITH PASSWORD 'password';" createdb demodb

-modularize schema and respolvers: https://blog.apollographql.com/modularizing-your-graphql-schema-code-d7f71d5ed5f2 https://github.com/andrecalvo/GraphQL-Apollo-Node-Express-Postgres-Sequelize-starter

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published