forked from ZcashFoundation/zebra
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
start READMEs for backend local dev (ZcashFoundation#36)
- Loading branch information
Showing
3 changed files
with
56 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# Python | ||
|
||
Basic python setup. | ||
|
||
We use python 3.10 latest in production. Earlier versions might work. | ||
Install python 3.10 and virtualenv for your OS. | ||
|
||
> TODO: devcontainer!! | ||
You can add the py directory to your python path. | ||
In this directory: | ||
|
||
```sh | ||
export PYTHONPATH=`pwd` | ||
``` | ||
|
||
Create a virtualenv: | ||
|
||
```sh | ||
virtualenv env | ||
# or | ||
virtualenv -p `which python3` env | ||
``` | ||
|
||
Enter the virtualenv: | ||
|
||
```sh | ||
source env/bin/activate | ||
``` | ||
|
||
Install the dependenncies: | ||
|
||
```sh | ||
pip install -r requirements.txt | ||
``` |
Empty file.
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,21 @@ | ||
# Free2Z backend | ||
|
||
Make sure you have followed the [python setup instructions](../../README.md) | ||
to setup your local python environment. | ||
|
||
You can use sqlite to develop locally: | ||
|
||
```sh | ||
./manage.py migrate | ||
``` | ||
|
||
Create a superuser: | ||
|
||
```sh | ||
./manage.py createsuperuser | ||
``` | ||
|
||
In local dev, without the RECAPTCHA secret setup, | ||
you can go to http://localhost:8000/adminzzz/ to login | ||
and then you should be logged in to the frontend on | ||
http://locahost:3000/profile. |