cestastanford / grandtour

Apache License 2.0
4 stars 2 forks source link

The Grand Tour Explorer

This is the codebase for the Grand Tour Explorer web project. To set up a local development environment, follow these steps:

Restoring a MongoDB database backup

To restore a MongoDB database backup into your local database, unzip the backup and find the directory containing the BSON and JSON files. Make sure the development server is not running and run the following commands. Warning: this will erase the current database and replace it; make a copy of your data directory if you want to save it.

Map Visualization https://www.mapbox.com/install/js/bundler-install/

Deployment

The GTE is deployed on Reclaim Hosting.

To deploy, first make a pull request or a commit to the master branch. Then, a GitHub Action will build the appropriate code and push the results to the build branch. Then, to deploy to Reclaim:

  1. Log in to https://app.my.reclaim.cloud/
  2. Go to the "Deployment Manager" -> "GIT / SVN" tab on the bottom. Click the "Deploy to..." icon next to "grandtour". Select the grand tour "Application Environment" for "Environment" and click "Deploy".
  3. Grand Tour Explorer and book should be deployed at https://aworldmadebytravel.supdigital.org/.

notes

install MongoDB 4 on Ubuntu

nvm install 14
nvm use 14
npm i
npm i -g heroku
npm run dev-start

wget -qO - https://www.mongodb.org/static/pgp/server-4.0.asc | sudo apt-key add -
echo "deb [ arch=amd64,arm64 trusted=yes ] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.0.list
sudo apt-get update
sudo apt-get install -y mongodb-org