danisyellis / first-try

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Vinyl

A community for record enthusiasts to review their favorite albums.

Part of the application has already been built for you. Your job is to take it to completion.

Getting Started

Run $ npm run to see the list of commands available. To see what each command does, look at package.json.

The app uses a basic Express file structure, and includes SQL files to set up the schema and import data.

src/
  albums.sql          # seed album data
  database.js         # database connection and queries
  package.json        # npm standard
  public/             # static assets go here
  README.md           # you are here
  schema.sql          # define database schema here
  server.js           # web server
  views/              # html templates go here

Setting Up Your Database

Use the following commands to set up and seed your database:

  1. Create PostgreSQL database vinyl: $ npm run db:create
  2. Set up database tables from schema.sql: $ npm run db:schema
  3. Load seed data from albums.sql: $ npm run db:seed
  4. Create a table to store sessions $ npm run db:session:setup

About

License:MIT License


Languages

Language:JavaScript 60.2%Language:HTML 31.3%Language:CSS 8.5%