Git Product home page Git Product logo

tatt's Introduction

Setting up your dev system for TATT development

Our current development setup is on Ubuntu linux. Please either develop on an Ubuntu system or a virtualized one. Search for info regarding virtualbox, parallels, hyperv, or vmware if you are not familiar with virtualization.

Also, please fork the main repo on github if you haven't. You will be pushing changes to your own repo and submitting pull requests to the main acm repo when you have valid, working code. Please keep your working code in your master branch and use other branches for adding new features, testing other developer's code and implementing bug fixes. Check out this guide for how to effectively branch and merge code in git.

The following guide assumes you clone the project in your home directory and that you will create a python virtual environment in your home directory.

Software setup

To install the project you will need to do the following.

  • sudo apt-get install python git python-pip python-dev ruby-compass
  • sudo pip install virtualenv
  • cd ~
  • git clone [email protected]:{YOUR GITHUB ID HERE}/tatt.git
  • virtualenv --no-site-packages tattenv
  • source tattenv/bin/activate
  • pip install -r tatt/dependencies.txt --allow-external PIL --allow-unverified PIL

Regarding Virtual Environment

Whenever you work on the project you will first need to activate the virtual environment as we did above with the source command. When you are done with the environment, simply type:

  • deactivate

Additional setup and running the server

Now that you have all the software installed, now you need to do the following the first time you run the project

  • cd ~/tatt/server
  • python manage.py syncdb
  • python manage.py loaddata main/fixtures/attributes.json main/fixtures/attributevalues.json main/fixtures/items.json main/fixtures/itemtypes.json main/fixtures/users.json
  • python manage.py collectstatic
  • python manage.py runserver

In another terminal do the following and then minimize it:

  • cd ~/tatt/compass
  • compass watch

While the server is running, you can go to 127.0.0.1:8000 in your browser to test it. To stop the server, just press Ctrl-C.

Whenever there are database schema changes you will need to re-run the syncdb line, and you should follow that up with the loaddata line.

Unfortunately, the users.json will clobber any new administrative user you might have made. The administrative user is "acm" (lowercase) and its password is "password"

Whenever new static files (images, css, javascript, etc) are added you will need to re-run the collectstatic command. We will look at changes in the future so this is not needed on dev environments.

The command "compass watch" will check for when the files in ~/tatt/compass/sass are modified. If they are, then compass will regenerate the css files used by the site. As such, be sure to edit the files compass that is watching rather than the files in the static css directory.

tatt's People

Contributors

austinh100 avatar briantruong777 avatar drew212 avatar eparsons avatar nicktabick avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

santhnm2

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.