Skip to content
Snippets Groups Projects
Commit 873781c2 authored by Yorgo EL MOUBAYED's avatar Yorgo EL MOUBAYED
Browse files

Update README.md

parent 5a29c79f
No related branches found
No related tags found
No related merge requests found
REST API created using Django, Neo4j and Neomodel. REST API created using Django, Neo4j and Neomodel.
### Clone the repository ## Clone the repository
~~~ ~~~
git clone https://git.embl.de/yelmoubayed/new-dp-service.git git clone https://git.embl.de/yelmoubayed/new-dp-service.git
cd <repository> cd <repository>
~~~ ~~~
### Create a virtual environment to isolate the package dependencies locally ## Create a virtual environment to isolate the package dependencies locally
~~~ ~~~
python3 -m venv env python3 -m venv env
~~~ ~~~
...@@ -17,17 +17,17 @@ source env/bin/activate #On Linux and MacOS ...@@ -17,17 +17,17 @@ source env/bin/activate #On Linux and MacOS
env\Scripts\activate #On Windows env\Scripts\activate #On Windows
~~~ ~~~
### Install requirements ## Install requirements
~~~ ~~~
pip install -r requirements.txt pip install -r requirements.txt
~~~ ~~~
### To add new requirements if needed ## To add new requirements if needed
~~~ ~~~
pip freeze > requirements.txt pip freeze > requirements.txt
~~~ ~~~
### Django common command lines ## Django common command lines
#### Create constraintes #### Create constraintes
~~~ ~~~
......
No preview for this file type
from neomodel import StructuredNode, StringProperty, IntegerProperty,UniqueIdProperty, RelationshipTo from neomodel import StructuredNode, StringProperty, IntegerProperty,UniqueIdProperty, RelationshipTo
from uuid import uuid4
# from api.models.ocf_model import OCF # from api.models.ocf_model import OCF
# from api.models.storagehost_model import StorageHost # from api.models.storagehost_model import StorageHost
...@@ -7,7 +8,7 @@ from neomodel import StructuredNode, StringProperty, IntegerProperty,UniqueIdPro ...@@ -7,7 +8,7 @@ from neomodel import StructuredNode, StringProperty, IntegerProperty,UniqueIdPro
class Construct(StructuredNode): class Construct(StructuredNode):
uid=UniqueIdProperty() uid=UniqueIdProperty(default=uuid4)
name=StringProperty() name=StringProperty()
# Relationships # Relationships
......
No preview for this file type
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment