Skip to content

Commit

Permalink
start READMEs for backend local dev (ZcashFoundation#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
skyl authored Dec 10, 2022
1 parent 0d153b1 commit 4211da1
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 0 deletions.
35 changes: 35 additions & 0 deletions py/README.md
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 added py/dj/README.md
Empty file.
21 changes: 21 additions & 0 deletions py/dj/free2z/README.md
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.

0 comments on commit 4211da1

Please sign in to comment.