Index is a directory of contemporary photographers and filmmakers — a tool for finding talent from around the world.
This section will get the project running with all of its setup and dependencies.
Clone this repository, git clone git@github.com:theindex-la/theindex.la-www.git && cd theindex.la-www
Once you have the repository cloned locally, you can run ./bin/install
to bootstrap the project.
Once the bootstrap installation is done, ./bin/start
will start the dev server and npm run node
will start the node app server.
This app is using AWS. The following bin scripts are for connecting and deploying to EC2 instances. There are 3 tagged instances.
./bin/connect-production
- Connect to production site./bin/connect-staging
- Connect to staging site./bin/connect-node
- Connect to node appWe use Circle CI to deploy to these 3 instances. All pushes to the master
branch will trigger a build and deploy to production. Pushes to the dev
branch will trigger a build and deploy to staging.
Manual deployment should be considered with caution, but these bin scripts are available to do so.
./bin/deploy-node
- Deploy to node app./bin/deploy-staging
- Deploy to staging site./bin/deploy-production
- Deploy to production siteThere are a handful of npm scripts as well.
npm run lint
- Manually lint source/jsnpm run jsdoc
- Generate jsdocsnpm run sync
- Sync local data from prismic.ionpm run build
- Generate static build of the sitenpm run node
- Run the node app server locallyThis project is using prismic.io for managing content data. The dev server is running prismic-express.