Skip to content

cheuklau/trading-post

Repository files navigation

cheuklau

Trading Post

Trading post is a simple platform to help people in the same location find each other and make trades.

Dependencies

The project can be run locally using Vagrant and Virtualbox. The VagrantFile contains all of the dependencies.

To test locally

Follow the following steps to test locally:

  • Start Vagrant: vagrant up
  • SSH into the Vagrant virtual machine: vagrant ssh
  • Change to the Vagrant directory: cd ../../vagrant
  • Create the database: python database_setup.py
  • Populate the database: python populate_db.py
  • Run the platform: python project.py
  • Visit http://0.0.0.0.xip.io:5000/ from your browser

Note that xip is a domain name that provides wildcard DNS for any IP. This allows testing on the local network.

CircleCI Integration

This project is set up with CircleCI. Contributions will automatically be picked up by CircleCI and built into an AMI using Packer based on the operations repo. The AWS secret and access keys required for Packer to build the AMI are stored in CircleCI as a secret environment variable.