Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Repository files navigation

Screenshot of Court Search

📝 Description

The Court Connect is a full-stack Flask web application that connects basketball enthusiasts with basketball courts around the world. Users can register, log in, and search for basketball courts via the Google Maps API. They can then save their favorite courts to their profile and rate them.

🗺️ APIs Used

Google Maps Javascript API: https://developers.google.com/maps/documentation/javascript

Google Maps Places API (New): https://developers.google.com/maps/documentation/places/web-service/text-search

Google Maps Geocoding API: https://developers.google.com/maps/documentation/javascript/geocoding

📊 Features

  • User Authentication & Profile Management
  • Basketball Court Search & Mapping
  • Save, Manage, & Rate Favorite Courts

🛠 Tech Stack

JavaScript Python Flask Postgres HTML5 CSS3 Render Jinja Bootstrap Pytest Jasmine

🎬 Getting Started

📦 Installation

  1. Clone the Repository & Setup Virtual Environment
git clone https://github.com/yourusername/the-court-connect.git
cd the-court-connect
  1. Create and Activate a Virtual Environment
python -m venv venv
source venv/bin/activate  # On Windows use: venv\Scripts\activate
  1. Install Dependencies
pip install -r requirements.txt
  1. Configure Environment Variables
  • Create a .env file in the project root with the following variables
SECRET_KEY=your_secret_key
GOOGLE_MAPS_API_KEY=your_google_maps_api_key
  1. Set Up the Database
  • Ensure that you have PostgreSQL installed and create the development database
createdb basketball_court_finder_db

💪🏽 Usage

🏃🏽‍♂️ Running the Application

  • Start the Flask development server
flask run

🔬 Running Tests

Back-End Tests

  • Run the Pytest suite to verify back-end functionality
pytest -v

Front-End Tests

  • Open the SpecRunner.html file in your browser to run the Jasmine tests for front-end JavaScript functions.

🌐 Deployment & Hosting

The Court Connect is deployed on Render using the free tier, which spins down after 15 minutes of inactivity. To keep the app responsive, UptimeRobot is set up to ping the site every 14 minutes to prevent cold starts. The PostgreSQL database is hosted on Neon, providing a serverless, always-on backend for persistent data storage.

Hosting:

License:

This project is licensed under the MIT License.

License: MIT

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages