/tablesurfers

Primary LanguageJavaScript

Tablesurfer

Team

Tech Overview

  • Task Runner
    • Grunt
  • Client Side
    • Angular
    • Angular Material
  • Server Side
    • Node
    • Express
    • Postgres
    • Sequelize

File Structure

.bowerrc is used to specify path for bower components; these client-side dependencies are located in client/lib

client
  --- app
    // angular (views, services, etc)
  --- assets
    // client-side assets (ex: img)
  --- lib
    // bower components
  --- styles
    // stylesheets
  --- index.html

server
  --- routes
  --- server-spec
  --- server-config.js
  --- server.js

Style

Using the Angular team approved style guide by John Papa. App was designed with modularity and code reuse in mind.

Angular Style Guide

Database

Important: Please follow the directions in order to setup the necessary local user and PostgreSQL database - proper local functionality and testing relies on this.

To setup your database locally:

  1. Install Postgres.app
  1. Install Postico [optional]
  1. Use psql, the Postgres CLI, to create needed database and authorized user
  2. From your terminal, enter psql and hit enter
  3. Now that psql is running, go ahead and create the user * CREATE USER admin WITH SUPERUSER; * ALTER USER admin WITH PASSWORD 'admin'; * SET ROLE admin; * CREATE DATABASE tablesurfer;
  4. Double check that your Postgres.app is running from your OSX toolbar, it should indicate that the port you are using is 5432
  5. You're successfully setup for Postgres to use tablesurfer!