2019-08-31 22:25:25 +00:00
|
|
|
# member.data.coop
|
|
|
|
|
2021-02-28 23:15:01 +00:00
|
|
|
## Development requirements
|
2019-08-31 22:25:25 +00:00
|
|
|
|
2021-02-28 23:15:01 +00:00
|
|
|
- Docker
|
|
|
|
- Docker compose
|
|
|
|
- pre-commit (preferred for contributions)
|
2019-08-31 22:25:25 +00:00
|
|
|
|
2021-02-28 23:15:01 +00:00
|
|
|
## Start local server
|
2019-08-31 22:25:25 +00:00
|
|
|
|
2021-02-28 23:15:01 +00:00
|
|
|
Given that the requirements above are installed, it should be as easy as:
|
2019-08-31 22:25:25 +00:00
|
|
|
|
2021-02-28 23:15:01 +00:00
|
|
|
$ make migrate
|
2019-08-31 22:25:25 +00:00
|
|
|
|
2021-02-28 23:15:01 +00:00
|
|
|
This will setup the database. Next run:
|
2019-08-31 22:25:25 +00:00
|
|
|
|
2021-02-28 23:15:01 +00:00
|
|
|
$ make run
|
2019-08-31 22:25:25 +00:00
|
|
|
|
2021-02-28 23:15:01 +00:00
|
|
|
This will build the docker image and start the member system on http://localhost:8000.
|
2019-08-31 22:25:25 +00:00
|
|
|
|
2021-02-28 23:15:01 +00:00
|
|
|
You can create a superuser by running:
|
2019-08-31 22:25:25 +00:00
|
|
|
|
2021-02-28 23:15:01 +00:00
|
|
|
$ make createsuperuser
|
|
|
|
|
|
|
|
Make migrations:
|
|
|
|
|
|
|
|
$ make makemigrations
|
|
|
|
|
|
|
|
Make messages:
|
|
|
|
|
|
|
|
$ make makemessages
|
|
|
|
|
|
|
|
Running tests:
|
2019-08-31 22:25:25 +00:00
|
|
|
|
|
|
|
$ make test
|