Code Monkey home page Code Monkey logo

pitch-finder's Introduction

logo

HitCount Build Status GitHub license Known Vulnerabilities Version Deployed

Contributors: Sean Murray, Sarah Shatto, Edgar Romero, Jonathon Lee

Version: 1.5.0

Live: Link

Overview:

An app designed to connect players with open pickup games around in their local area.

Getting Started:

Step 1:

Once you have cloned the repo in the command line run:

$ npm i
$ touch .env

Step 2:

In the directory open the .env file and insert the following:

PORT=<openport>
DATABASE_URL=db-url
AUTH0_DOMAIN=from-auth0
AUTH0_CLIENT_ID=from-auth0
AUTH0_CLIENT_SECRET=from-auth0
SECRET=express-sessions-secret
PARKS_API_KEY=seattle-parks-API-key
MAP_API_KEY=LocationIQ-API-key

Note You will need to register with Auth0, Seattle Parks, and LocationIQ.

Step 3:

From the root directory on the command line run the following commands:

$ psql
# CREATE DATABASE dbname;
# \q
$ psql -d dbname -f schema.sql

Step 4:

To start the server run the following in the terminal:

$ npm start

Architecture:

App uses node and express to create server and handle http/s requests. OAUTH and express sessions to create and secure logging in and protected routes. EJS is used for rendering of pages and page logic.

Libraries Used:

  • Express
  • EJS
  • dotenv
  • superagent
  • pg
  • express-sessions
  • passport
  • passport-auth0
  • method-override
  • jquery-modals

Change Log:

  • 06-19-2020 1600 App now uses OAUTH for user accounts and restricted route access.
  • 06-22-2020 1800 App has ability to create and display events to the user and store them in the DB.
  • 06-25-2020 1800 App has full functionality for the Seattle area, joining and leaving events, profiles, and creating, editing, and deleting events.

Notes

in auth.js line 58 the concatenation of the 's' will need to be removed in order to logout on http.

let returnTo = req.protocol + 's' + "://" + req.hostname;

pitch-finder's People

Contributors

seanjmurray avatar jonnyleealas avatar sarahshatto avatar edgar-romero87 avatar

Stargazers

JanvyHung avatar

Watchers

 avatar

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.