-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4d5c0ea
commit 04ac9d9
Showing
13 changed files
with
684 additions
and
543 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
# About DSMR-reader | ||
|
||
[TOC] | ||
|
||
DSMR-reader project information. | ||
|
||
## Project goals | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
# Contributions | ||
|
||
DSMR-reader is originally created and authored by: | ||
|
||
- Dennis Siemensma | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
# Developing DSMR-reader | ||
|
||
## Setting up a development environment using Docker | ||
|
||
> I'm using JetBrain's PyCharm IDE for local development, which has builtin support for Git and Docker. | ||
> Therefor some steps or information below may or may not match your own development stack. | ||
- Install Docker on your system. E.g. [how-to for Ubuntu](https://docs.docker.com/engine/install/ubuntu/) and consider [Docker rootless](https://docs.docker.com/engine/security/rootless/). | ||
|
||
- Clone DSMR-reader repository from GitHub: | ||
|
||
```shell | ||
git clone <link to your fork>> | ||
cd dsmr-reader/ | ||
``` | ||
- Symlink Docker files required (or just copy them): | ||
|
||
```shell | ||
# Either symlink | ||
ln -s provisioning/container/compose.dev.yml compose.yml | ||
|
||
# Or copy | ||
cp provisioning/container/compose.dev.yml compose.yml | ||
``` | ||
|
||
- Try running Docker (compose): | ||
```shell | ||
# This should build all the containers for local development | ||
docker-compose up -d | ||
``` | ||
- Containers built? See if this command works: | ||
```shell | ||
docker exec -it dev-dsmr-app poetry run /app/manage.py check | ||
|
||
# Expected output: "System check identified no issues (0 silenced)" | ||
``` | ||
- Now check whether tests run well in SQLite: | ||
```shell | ||
./tools/test-quick.sh | ||
``` | ||
|
||
|
||
> Other DB engines can be tested as well, but the CI will take care of it anyway. The SQLite engine matches 99% of the features DSMR-reader requires and it also runs in-memory, speeding up tests. | ||
- When using PyCharm, you can add a new Interpreter using Docker Compose. Just select ``dev-dsmr-app`` and set ``/opt/venv/bin/python`` as interpreter path. It should now map all dependencies used/installed in the container. | ||
|
||
|
||
## Running DSMR-reader locally | ||
|
||
When running it with the default Docker compose config, the Django Development Server application will be accessible at: | ||
|
||
- [http://localhost:8000](http://localhost:8000/) | ||
|
||
Any Python code changes you make will cause the Django Development Server to reload itself automatically. | ||
|
||
## Other stuff | ||
There is some more to it, such as tests, translations and documentation. If you ever need to work on those, just see how similar stuff works in the project. Or ask for more information. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Donating | ||
|
||
If you really like DSMR-reader, feel free to use it without anything in return, you're welcome! ❤ | ||
|
||
|
||
Still want to return a small token of appreciation? You can: | ||
|
||
- [Donate with PayPal](https://www.paypal.com/donate/?hosted_button_id=GCJZF72C28QM4) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.