Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Daniel-Hoerauf/trigon_site

Repository files navigation

Trigon Engineering Society

The website for the Trigon Engineering Society at UVA

Local Installation

The website is built using the python Flask framework. It's built using docker-compsoe for ease of portability and cross platform support, with grunt to compile the SASS files into CSS.

In order to get the website running locally, the first step is to compile the .scss files to .css files. To do this you must have Ruby and Nodejs install. Then, run the following commands

gem install                 # Might need to be run as root depending on your system
npm install -g grunt-cli
npm install                 # Run from project root
grunt sass

If you are making changes to the styling, rather than running grunt sass with every change you can simply run grunt watch to recompile the css files to every change in the static/scss/ directory

Once the scss files have been compiled, you must install docker-compose if it's not already present on your system.

Then, once docker-compose has been installed and the docker daemon is running, the site can be launched with the command

docker-compose up

If you've made any changes to the source code, the site image must be rebuilt on startup by running

docker-compose up --build

Once the image is built and running the website can be seen at http://localhost:5000

###Consideration for Docker-machine Note: if running on Windows or OSX and using docker-machine instead of Docker native, the IP address will not be localhost You can find the IP by running

docker-machine ip <MACHINE_NAME>

Where <MACHINE_NAME> will be default unless you're running multiple docker-machines

About

Trigon Engineering Society website built in Flask

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •