Giter Site home page Giter Site logo

spec_maker's Introduction

Spec_Maker

Below you will find basic setup instructions for the spec_maker project. To begin you should have the following requirements:

- Python >= 2.7

Optional:: - virtualenv >= 1.7 - virtualenvwrapper >= 3.0

Getting Started

You have two setup choices: Simple or Virtualenv. If you don't know virtualenv, just check the Simple Setup section. Here we use Ubuntu as the OS environment.

Simple Setup

./simple_setup.sh

You should now be able to run the development server:

./run.sh

Then open your browser and connect to http://localhost:7788

Virtualenv Setup

sudo apt-get install python-setuptools
sudo apt-get install pandoc
sudo apt-get install texlive-latex-base texlive-xetex texlive-latex-recommended texlive-latex-extra texlive-fonts-recommended

sudo easy_install pip

sudo pip install virtualenvwrapper

To setup your local environment you should create a virtualenv and install the necessary requirements(maybe you need to source /urs/local/bin/virtualenvwrapper.sh manually):

mkvirtualenv spec_maker
$VIRTUAL_ENV/bin/pip install -r $PWD/requirements/dev.txt

sed -i "s/pdflatex/xelatex/g" $VIRTUAL_ENV/local/lib/python2.7/site-packages/sphinx/texinputs/Makefile

Then create a local settings file and set your DJANGO_SETTINGS_MODULE to use it:

cp spec_maker/settings/local.example.py spec_maker/settings/local.py
echo "export DJANGO_SETTINGS_MODULE=spec_maker.settings.local" >> $VIRTUAL_ENV/bin/postactivate
echo "unset DJANGO_SETTINGS_MODULE" >> $VIRTUAL_ENV/bin/postdeactivate

Exit the virtualenv and reactivate it to activate the settings just changed:

deactivate
workon spec_maker

You should now be able to run the development server:

./run.sh

Then open your browser and connect to http://localhost:7788

License

(The MIT License)

Copyright (C) 2014-2016 黃健瑋(Chien-Wei Huang)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

spec_maker's People

Contributors

carlcarl avatar

Stargazers

 avatar

Watchers

 avatar

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.