Giter Club home page Giter Club logo

quizzam's Introduction

Quizzam

Juan, George, Joe, James, Evan

CircleCI

Setup

Database Part 1

Pre-reqs

Download Postgresql through Homebrew

$ brew install postgres

Alternatively, if you do not have homebrew installed

Getting Started

Start up postgress

brew services start POSTGRESQL

Create database quizzam_dev

$ psql
CREATE DATABASE quizzam_dev;

Create database quizzam_test

$ psql
CREATE DATABASE quizzam_test;

Managing databases

To manage quizzam_dev and quizzam_test, we reccomend using Postico.

Alternatively, here is a psql cheatsheet.

  • Currently, the databases exists without seed data. After the repo is installed in the directions below, we can apply the seed data to the databases we jsut created.

Respository

Pre-reqs

Clone / fork the repo

cd quizzam
npm install

To Start

To start the app, we will need to run the build and server in seperate terminal windows.

In build window

npm run build

In server window

npm run server

Browser

In browser open up http://localhost:3000/

  • Quizzam should be running without any seed data
  • You can now follow the Migrating Database instructions below.

Database Part 2

Migrating Database (Skip this section until after repository is installed)

Knex is included to create the schema for quizzam_dev and quizzam_text. We have also provided initial seed data, for your use.

knex migrate:latest
knex seed:run

Re-Migrate the database

In some cases after using the app and adding dummy data, we might want to reapply the initial seed data. To do this, we rollback the migration and reaaply with the seed data.

knex migrate:rollback
knex migrate:latest
knex seed:run

Screenshots

Home Page

home

Quiz List

quizlist

Quiz

quiz

Results

chart

quizzam's People

Contributors

evansays avatar noetic97 avatar jsullivan5 avatar jdiejim avatar ggoering avatar

Stargazers

 avatar Aloys avatar

Watchers

James Cloos avatar  avatar  avatar  avatar

quizzam's Issues

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.