Skip to content
This repository has been archived by the owner on May 11, 2021. It is now read-only.

Improve bower documentation #253

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,10 @@ FROM python:3.4.3
WORKDIR /code
COPY requirements.txt /code/
RUN python -m pip install -r requirements.txt
RUN apt-get install nodejs
RUN apt-get install ruby
RUN npm install -g bower
RUN gem install bundler
ADD . /code
RUN cd /code/pygotham/frontend/static && bower install
RUN cd /code/pygotham/frontend/static && bundle install
24 changes: 23 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,24 @@ The last step is to create an event::
Activate the event [n]: <y|n>



Front-End Dependencites
=======================
For those using docker, you can skip this part.

Requirements:

- `Ruby 1.9+`_ with Bundler_
- `Node.js`_ with bower_


For SCSS:
- Install Dependencies: navigate to static directory at ``pygotham/frontend/static`` and run ``bundle install``
- Watch & compile changes by running the command - ``bundle exec compass watch``

For JavaScript:
- Install Dependencies: navigate to static directory at ``pygotham/frontend/static`` and run ``bower install``

Running the site locally
========================

Expand All @@ -112,7 +130,7 @@ You should see the PyGotham site at::

http://0.0.0.0:5000/<slug>/

where ``<slug>>`` is the slug of the event created by the ``create_event``
where ``<slug>`` is the slug of the event created by the ``create_event``
management command.

.. note:: If you're using Docker, Compose will take care of running the site
Expand All @@ -125,3 +143,7 @@ management command.
.. _pyenv: https://github.com/yyuu/pyenv
.. _pyenv-virtualenvwrapper: https://github.com/yyuu/pyenv-virtualenvwrapper
.. _virtualenvwrapper: https://virtualenvwrapper.rtfd.org
.. _Node.js: http://nodejs.org
.. _bower: http://bower.io
.. _Bundler: http://bundler.io/
.. _Ruby 1.9+: https://www.ruby-lang.org/
29 changes: 0 additions & 29 deletions pygotham/frontend/static/README.md

This file was deleted.