We are glad to see you are interested in the ins-and-outs of college mapper. Please allow us to explain how to get college mapper running locally, so that you can can get started extending the application as you see fit.
College Mapper is organized into server and client repositories.
The server is implemented as a simple Flask API. On development, it runs automatically on localhost:5000. For hosting, it is simple to deploy this API on Heroku, with the assistance of the gunicorn library.
The client is implemented as a single-page React application, bootstrapped with create-react-app.
First, you should run the server. (Note: the following instructions apply to Unix/MacOS environments only; for Windows, your steps [including those for pip environment] will be a bit different, but follow the same general order.)
cd apisource env/bin/activatepip3 install -r requirements.txtpython3 main.pyThis application uses Firebase to facilitate authentication and data storage. Thus, to run this application locally, you should create a Firebase project, then make a web app inside the project. After making this web app, you will be a Firebase ‘API Key,’ as well as several other pieces of information necessary to running this application locally.
Create a .env file in the /client directory. You should configure these environment variables to correspond to the data you got from Firebase after making the web app. In the following list, the name of the relevant strings in the firebaseConfig object given in your Firebase project settings are given in parentheses.
REACT_APP_API_KEY (apiKey)REACT_APP_AUTH_DOMAIN (authDomain)REACT_APP_DATABASE_URL (databaseURL)REACT_APP_PROJECT_ID (projectId)REACT_APP_STORAGE_BUCKET (storageBucket)REACT_APP_MESSAGING_SENDER_ID (messagingSenderId)REACT_APP_MEASUREMENT_ID (measurementId).env ConfigurationsIf you would like, you can add a REACT_APP_SUPPORT_LINK link to a form in which one may provide feedback on your college mapper application, in the form of a URL.
cd clientyarn && yarn startCollege Mapper is licensed under the MIT License.