Skip to content

Commit 79a1515

Browse files
committed
add README.md
1 parent 86dfa87 commit 79a1515

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

README.md

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# QR code service
2+
3+
## Prerequisites
4+
* Python 3.6 / Python 3.7
5+
* pip
6+
7+
## installation
8+
9+
```bash
10+
pip install -r requirements.txt
11+
```
12+
13+
## Run production server
14+
15+
```bash
16+
export DJANGO_SETTINGS_MODULE="qr_service.settings.production"
17+
export SECRET_KEY="s3cR3T_k3y"
18+
export DEBUG=0
19+
python manage.py runserver 8000
20+
```
21+
22+
23+
## deploy with docker
24+
25+
### create env file
26+
```bash
27+
cp .env.example .env
28+
```
29+
30+
#### build
31+
32+
```bash
33+
docker-compose build
34+
```
35+
36+
#### run
37+
```bash
38+
docker-compose up
39+
```
40+
41+
* Your server is now available at localhost:1337
42+
43+
You can configure the used port in docker-compose.yml in services.nginx.ports

0 commit comments

Comments
 (0)