Skip to content
OpenRepairPlatform is a web application based on Django designed to organizing collaborative electronics repair structures - Still in development
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
api Merge branch 'master' of https://github.com/AtelierSoude/OpenRepairPl… Jan 31, 2019
ateliersoude
deployment make SMTP mailer as environnements variables Jan 31, 2019
media added default avatar Jul 11, 2018
node_modules Prevent commit of npm build files Nov 27, 2017
plateformeweb display all place on event form Jan 31, 2019
static make add_user as a separated template and stylish it Jan 31, 2019
templates
users
.gitignore
README.md Update README.md Aug 7, 2018
bootstrap.py Fixed User model, moved templates Nov 25, 2017
bootstrap.sh add users fixture and loaddata Jan 31, 2019
celery.sh Fix celery throwing various errors Jun 5, 2018
entrypoint.sh
fixture.json
manage.py prod setting as default settings Jul 18, 2018
package-lock.json
package.json
start.sh

README.md

Django-AtelierSoude

OpenRepairPlatform is a Django based application designed to organize collaborative repair structures, features provides organization managment, event publishing, community members managment, repair tracking and sharing.

The plateform is created by Atelier Soudé, an organization which repair everyday's people electric and electronic objects in Lyon, France.

Move to the deployment directory

cd [git checkout directory]/deployment

Update bootstrap data (optional)

Only if a change is needed in the initial content. It is possible to dump the data that was manually created and make it a fixture. This involves opening a shell in the running container (docker exec -ti deployment_django_1 bash), cd'ing to the /ateliersoude directory and running ./manage.py. Look at the quotation/fixtures/quotation/README.txt file for more.

Running the application

After cd'ing to the main directory (and having docker-compose installed), do this only once

./start.sh create_env

(later: fill in the environment variables like passwords in here) Then to run the application:

./start.sh dev

Logs

Having the logs displayed to STDOUT is done with docker logs -f ateliersoude-django except for the dev server where they're displayed by default (container isn't detached)

Get into the containers

  • Application: docker exec -ti deployment_django_1 bash
  • Database: docker exec -ti deployement_ateliersoude-postgres_1 bash

Fixture data

You can find some already implemented users fixtures such as :

login: admin@example.com passwd: foobar

Unit Tests

To run unit tests:

docker-compose -f deployment/docker-compose.yml run --rm django python ateliersoude/manage.py test plateformeweb.tests --settings=ateliersoude.settings.test

Debugger

Need a debugger ? in your view file :

from ipdb import set_trace

set_trace()

to make it interactive run thet test with external ports, add --service-ports to the test command.

docker-compose -f deployment/docker-compose.yml run --service-ports --rm django python ateliersoude/manage.py test plateformeweb.tests --settings=ateliersoude.settings.test

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.