-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: add docs for how to hack on the project
- Loading branch information
1 parent
b8387a8
commit 2eff024
Showing
1 changed file
with
35 additions
and
1 deletion.
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 |
---|---|---|
|
@@ -54,8 +54,42 @@ When going to **production** you should run ```python manage.py collectstatic``` | |
 | ||
 | ||
|
||
## Generating screenshots | ||
### Generating screenshots | ||
|
||
``` | ||
convert "$1" -crop 1072x901+436+200 crop_signin.png | ||
``` | ||
|
||
### Hacking on the project | ||
|
||
```sh | ||
# Clone the repo | ||
git clone [email protected]:danihodovic/django-allauth-ui.git | ||
cd django-allauth-ui.git | ||
|
||
# Create the virtual env | ||
python -m venv .venv | ||
# Activate the virtual env. This has to be done every time you enter the directory. | ||
source .venv/bin/activate | ||
|
||
# Install the dependencies | ||
pip install --upgrade pip poetry | ||
poetry install | ||
|
||
# Install tailwind | ||
npm install | ||
|
||
# Run the migrations | ||
./manage.py migrate | ||
|
||
# Add sample social providers | ||
./manage.py create_test_providers | ||
|
||
# Start the server | ||
./manage.py runserver_plus | ||
|
||
# Start the tailwind compilation process | ||
npm run-script build:watch | ||
``` | ||
|
||
Make changes in allauth_ui/templates and open the browser at http://localhost:8000/accounts/login/ |