|
@@ -0,0 +1,44 @@
|
|
|
+# Design Template
|
|
|
+
|
|
|
+A module for processing customer orders implemented as a Django application.
|
|
|
+
|
|
|
+## Installation
|
|
|
+
|
|
|
+
|
|
|
+1) Download or clone repository
|
|
|
+
|
|
|
+```bash
|
|
|
+git clone https://git.sharix-app.org/ShariX_Open/sharix-open-webservice-running.git
|
|
|
+```
|
|
|
+
|
|
|
+2) Install required dependencies in project settings
|
|
|
+
|
|
|
+```python
|
|
|
+INSTALLED_APPS = [
|
|
|
+ ...
|
|
|
+ 'webservice_running',
|
|
|
+ ...
|
|
|
+]
|
|
|
+```
|
|
|
+
|
|
|
+3) Connects application routes to the project
|
|
|
+
|
|
|
+```python
|
|
|
+ urlpatterns = (
|
|
|
+ [
|
|
|
+ ...
|
|
|
+ path('webservice/', include("webservice_running.urls"), name='webservice'),
|
|
|
+ ...
|
|
|
+ ]
|
|
|
+ )
|
|
|
+```
|
|
|
+
|
|
|
+4) Delete the migration files in the **migrations** folder (everything except __init__.py)
|
|
|
+
|
|
|
+Start test the server:
|
|
|
+
|
|
|
+```bash
|
|
|
+python manage.py runserver 8000
|
|
|
+```
|
|
|
+
|
|
|
+If the port has not been selected, it is 8000 by default. If selected port is busy, use another one (for example, try increasing port number by 1 until the server starts). A link to the website should appear in the terminal.
|