Skip to content

YIP-Alumni-Map/Network-Map

 
 

Repository files navigation

Network-Map

table of contents

start

before you start, please

git clone https://github.com/YIP-Alumni-Map/Network-Map.git
cd Network-Map
npm install
npm run sql migrate:latest
npm run sql seed:run
npm run dev

design

ux

  • join

    • land
    • login email
    • home page

    Landing (route === /) !userIsAuthenticated ? Component = Welcome + Send Login Email : !userIsOnboarded ? Component = Onboarding : Component = Home


    Profile

data models

  • users
    • id
    • name
    • email

architecture

  • asset server (netlify)
  • web server (heroku)
  • mailer worker (heroku)

stack

folder structure

we're following the dogstack folder structure convention, adapted for our stack.

available scripts

npm start

starts production server

npm start

npm run dev

starts development server

npm run dev

TODO npm test

runs ava tests

Can optionally take a glob

npm test -- './todos/**/*.test.js'

Default glob is ./**/*.test.js ignoring node_modules

npm run lint

checks for standard style

can optionally take a glob

npm run lint -- './todos/**/*.js'

default glob is ./**/*.js ignoring node_modules

npm run sql

runs knex command, with any arguments.

npm run sql migrate:latest
npm run sql seed:run

notes

After deploy: migrate on heroku!

heroku login
heroku run npm run sql migrate:latest --app=yip-network

Postgres DEV setup

use a ~/.pgpass file to automate your passwords!

echo "localhost:5432:*:postgres:password" > ~/.pgpass
chmod 600 ~/.pgpass

create your database with:

createdb yipalumni_development -h localhost -U postgres

drop your database with:

dropdb yipalumni_development -h localhost -U postgres

connect to your database with:

psql -h localhost -U postgres -d yipalumni_development

emoji

license

AGPL-3.0

attributions

About

A platform/map for the YIP Alumni Network

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%