Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/1 doc #6

Merged
merged 13 commits into from
Jun 3, 2024
24 changes: 24 additions & 0 deletions docs/source/contributing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Contributing

## Frontend

Unlike many Django developers who like to write client side code in template, I prefer to put them in a `*.js` files and Stimulus JS is my favorite to write **reusable** and **maintainable** JavaScript code.

```bash
$ npm install

# launch webpack to compile the frontend assets and put them in `src/django_lookbook/static`
$ npm run watch
```

## Backend

```bash
# install the package in editable mode
$ pip install -e .
```

Notes:

1. Then you can install it in your Django project and debug it.
2. Or you can run the tests with `pytest`.
1 change: 1 addition & 0 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ Topics

install.md
write_preview.md
contributing.md