Skip to content

ZoeShirah/Hackbright_Star_Project

Repository files navigation

Bowl Full of Stars

Deployed! http://evening-shelf-57060.herokuapp.com/

Bowl Full of Stars is the 4 week project that I completed during my time as an software engineering fellow at Hackbright. Bowl Full of Stars is a web app that generates an image of the stars in the sky as viewed from different locations and times of day. Users can create an account and save their home location so that it will automatically generate the sky at that location when they are logged in.

alt text

Contents

Technologies

Backend: Python, Flask, PostgreSQL, SQLAlchemy
Frontend: JavaScript, jQuery, AJAX, Jinja, Bootstrap, HTML5, CSS
APIs: Google Maps

Features

The sky maps are viewable in four directions, the current direction is visible in the dropdown menu above the sky image alt text

A button can be clicked to view the Constellations alt text

Images of the constellations appear on the right, on mouseover of a constellation name in the list alt text

Information about stars and constellations is visible on mouseover alt text

Planets, and the sun and moon, are also visible, using information from the python library ephmeral alt text

The location can be changed in a menu below the star map. Google Maps will autfill the latitude and longitude when the user inputs a location. alt text

Each star has its own info page, if the star is visible at the default location, this page will also note in which direction to look for it. alt text

Users can create an account where they can set thier own default location and save stars of interest. If those stars are visible in thier default window the direction in which to look is displayed next to the name. alt text

Installation

To run Bowl Full of Stars:

Install PostgreSQL

Clone or fork this repo:

https://github.com/ZoeShirah/Star_Project

Create and activate a virtual environment inside your directory:

virtualenv env
source env/bin/activate

Install the dependencies:

pip install -r requirements.txt

Sign up to use the Google Maps API (https://developers.google.com/maps/)

Save your API key in a file called secrets.sh using this format:

export GOOGLE_API_KEY="YOUR_KEY_GOES_HERE"

Source your keys from your secrets.sh file into your virtual environment:

source secrets.sh

Set up the database:

python model.py

Run the app:

python server.py

You can now navigate to 'localhost:5000/' to use Bowl Full of Stars.

Or check out the heroku app! http://evening-shelf-57060.herokuapp.com/

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published