Go to file
Oliver Marks a6ba1f984b Merge pull request #1 from maidstone-hackspace/site-styling
Site styling improvments
2017-01-07 21:31:54 +00:00
compose Moved all files up one folder 2017-01-04 18:11:25 +00:00
config Initial member list page, need a group called member and users added to function 2017-01-07 19:21:53 +00:00
docs Moved all files up one folder 2017-01-04 18:11:25 +00:00
mhackspace Merge pull request #1 from maidstone-hackspace/site-styling 2017-01-07 21:31:54 +00:00
requirements Added in feeds django app, can be manged in the admin backend 2017-01-05 18:43:32 +00:00
utility Moved all files up one folder 2017-01-04 18:11:25 +00:00
.drone.yml Initial member list page, need a group called member and users added to function 2017-01-07 19:21:53 +00:00
.gitignore Switched to Bootstrap 4 Alpha 6 and converted Navbar 2017-01-07 19:48:04 +00:00
CONTRIBUTORS.txt Moved all files up one folder 2017-01-04 18:11:25 +00:00
COPYING Moved all files up one folder 2017-01-04 18:11:25 +00:00
LICENSE Moved all files up one folder 2017-01-04 18:11:25 +00:00
README.org Improved card styling from feeds 2017-01-07 21:15:27 +00:00
dev.yml Re minifed and added sticky footer 2017-01-07 20:23:44 +00:00
docker-compose.yml Added in feeds django app, can be manged in the admin backend 2017-01-05 18:43:32 +00:00
env.example Moved all files up one folder 2017-01-04 18:11:25 +00:00
gulpfile.js Moved all files up one folder 2017-01-04 18:11:25 +00:00
manage.py Moved all files up one folder 2017-01-04 18:11:25 +00:00
package.json Switched to Bootstrap 4 Alpha 6 and converted Navbar 2017-01-07 19:48:04 +00:00
pytest.ini Moved all files up one folder 2017-01-04 18:11:25 +00:00
setup.cfg Moved all files up one folder 2017-01-04 18:11:25 +00:00

README.org

Maidstone hackspace website

Repository for the maidstone hackspace website

Requirements

Before getting started make sure you have compose and docker and git installed on your machine The simplest way to setup this site is to use docker-compose so please install that from this site https://docs.docker.com/engine/installation/ and make sure the quick start guide works https://docs.docker.com/machine/get-started/ then you can use the commands below to test and make changes.

Setup

To get started checkout the project to your machine.

git clone https://github.com/olymk2/maidstone-hackspace.git

Once checked out build your containers locally if needed, only needed when you first start or if requirements change.

docker-compose -fdev.yml build

Startup your new containers containing a database and django

docker-compose -fdev up

Test django is serving pages http://127.0.0.1:8180

Run migrations and setup admin user to run django command just prefix them with docker-compose -f dev.yml run django

docker-compose -f dev.yml run django python manage.py makemigrations
docker-compose -f dev.yml run django python manage.py migrate
docker-compose -f dev.yml run django python manage.py createsuperuser

Migrations / Managing default data

If you want to export some data you entered into the admin area you can use dumpdata and loaddata to export and import.

docker-compose -fdev.yml run django python manage.py dumpdata feeds > mhackspace/feeds/fixtures/defaults.json
docker-compose -fdev.yml run django python manage.py loaddata mhackspace/feeds/fixtures/defaults.json