Commit missing files
This commit is contained in:
+9
-2
@@ -3,7 +3,9 @@
|
|||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"description": "A modern web app using a Django backend and an Angular frontend.",
|
"description": "A modern web app using a Django backend and an Angular frontend.",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "eslint ."
|
"test": "eslint . && remark .",
|
||||||
|
"eslint": "eslint .",
|
||||||
|
"remark": "remark ."
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
@@ -12,6 +14,11 @@
|
|||||||
"author": "SIK ry",
|
"author": "SIK ry",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"eslint": "3.19.0"
|
"eslint": "3.19.0",
|
||||||
|
"remark-cli": "^4.0.0",
|
||||||
|
"remark-preset-lint-recommended": "^3.0.1"
|
||||||
|
},
|
||||||
|
"remarkConfig": {
|
||||||
|
"plugins": ["remark-preset-lint-recommended"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -32,11 +32,11 @@ git checkout develop
|
|||||||
|
|
||||||
### Dependency list
|
### Dependency list
|
||||||
|
|
||||||
* Python >3.5
|
* Python >3.5
|
||||||
* PostgreSQL >9.5
|
* PostgreSQL >9.5
|
||||||
* pip3
|
* pip3
|
||||||
* virtualenv
|
* virtualenv
|
||||||
* npm
|
* npm
|
||||||
|
|
||||||
Install with apt:
|
Install with apt:
|
||||||
```
|
```
|
||||||
@@ -48,14 +48,14 @@ sudo apt install npm
|
|||||||
```
|
```
|
||||||
|
|
||||||
More info about PostgreSQL at:
|
More info about PostgreSQL at:
|
||||||
https://www.postgresql.org/
|
[https://www.postgresql.org/](https://www.postgresql.org)
|
||||||
|
|
||||||
These packages might be needed on certain platforms:
|
These packages might be needed on certain platforms:
|
||||||
|
|
||||||
* python3-dev
|
* python3-dev
|
||||||
* libffi-dev
|
* libffi-dev
|
||||||
* python3-cffi
|
* python3-cffi
|
||||||
* libssl-dev
|
* libssl-dev
|
||||||
|
|
||||||
## Create a virtual environment for python
|
## Create a virtual environment for python
|
||||||
|
|
||||||
@@ -94,7 +94,17 @@ Using address 0.0.0.0 will bind to all IP addresses.
|
|||||||
|
|
||||||
### Visit the page
|
### Visit the page
|
||||||
|
|
||||||
Visit https://localhost:8000 in your browser!
|
Visit [https://localhost:8000](https://localhost:8000) in your browser!
|
||||||
|
|
||||||
|
## Running in production
|
||||||
|
|
||||||
|
A good way to run django in production is by using uWSGI. Install uWSGI with:
|
||||||
|
|
||||||
|
```
|
||||||
|
pip install -r requirements.production.txt
|
||||||
|
```
|
||||||
|
|
||||||
|
Create an uWSGI ini file and run the daemon according to online instructions.
|
||||||
|
|
||||||
## Development workflow
|
## Development workflow
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
uWSGI==2.0.14
|
||||||
@@ -17,7 +17,6 @@ djangorestframework==3.5.3
|
|||||||
coverage==4.3.4
|
coverage==4.3.4
|
||||||
django-nose==1.4.4
|
django-nose==1.4.4
|
||||||
nose-exclude==0.5.0
|
nose-exclude==0.5.0
|
||||||
uWSGI==2.0.14
|
|
||||||
psycopg2==2.7.1
|
psycopg2==2.7.1
|
||||||
django-bootstrap3==8.2.3
|
django-bootstrap3==8.2.3
|
||||||
django-tables2==1.6.1
|
django-tables2==1.6.1
|
||||||
|
|||||||
Reference in New Issue
Block a user