Skip to content

places-app/places-app-server

Repository files navigation

Places

Save the places you love most. Discover places your friends love.

Team

  • Product Owner: Adam
  • Scrum Master: Sepehr
  • Development Team Members: Andrew, Jordan, Sepehr, Adam

Table of Contents

  1. Usage
  2. Requirements
  3. Development
    1. Installing Dependencies
    2. Tasks
  4. Team
  5. Contributing

Usage

Some usage instructions

Requirements

  • Node 0.10.x
  • Postgresql 9.1.x
  • React, Redux
  • React Native

Development

Setting up Postgres

  • Install postgres if you don’t have it:
  • Before you can start postgres you may need to initialize a data directory.
    • Try to start postgres with: brew services start postgresql
  • If it doesn't start, try these 2 steps:
    • To initialize the data dir run (only needs to be done once):
    • initdb /path/to/some/dir/pgsql-data/
    • Then to start the db run:
    • pg_ctl -D /path/to/some/dir/pgsql-data/ -l logfile start

Create the User and Database

  • To interact with the postgres server run:
    • psql postgres
  • Create user root with login role attribute
    • CREATE USER root;
  • Set the password for the root user
    • \password root;
  • When prompted for pass, enter ‘password’.
  • Create the database with root as owner
    • CREATE DATABASE places OWNER root;
  • Change db to places
    • \q to quit
    • psql places
Useful Postgres Commands:
\list or \l: list all databases
\dt: list all tables in the current database
\connect database_name
\du shows all the users

Installing Dependencies

From within the root directory:

npm install
npm start
npm run seed

Roadmap

View the project roadmap here

Contributing

See CONTRIBUTING.md for contribution guidelines.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •