YEG Historical Photos
Similar to OldNYC, BetaCityYEG hopes to bring its city and region’s history alive with a mobile-friendly webmap. Once the interface is completed, we will crowdsource the manual task of geolocating these images. An admin site has been created that allows multiple users to gelocate an image which updates an online database, inserting the latitude/longitude.
If you wish to run this application locally, you will need to do the following:
sudoas well if you have permission issues:
npm install -g jspm
On the command line, type the following to install all the necessary dependencies for the application:
You will need to setup a local database in order for the application to function properly. There are many different options you can use, but I used Postgres. The rest of the instructions are going to assume the use of Postgres.
Once Postgres is installed, you will need to create a database for the application to use. Connect to the database using the
psqlcommand and type the following to create a new database:
CREATE DATABASE yegphotos;
Now you will need to create a user in the database for the application to use. Enter the following command while still in
CREATE USER yegphotos_user WITH PASSWORD '<<INSERT PASSWORD HERE>>';
Now you will need to grant the user permission to the database. Type the following while still in
GRANT ALL PRIVILEGES ON DATABASE yegphotos TO yegphotos_user;
Update Configuration Files
You will now need to update the server/datasources.development.json file with the proper database information. Replace the following information in the configuration file:
- "database": "yegphotos"
- "username": "yegphotos_user"
- "password": "INSERT PASSWORD HERE"
Running the Application