Open Netra is a platform ...
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
Beforehand, you MUST know these prerequisites installation could be different depend on your local machine OS types (Windows/MAC/Linux). BUT it does not really matter, you could use many tutorials out there on the internet to help you install these prerequisites.
First things need to be installed on your local machine:
- Python
- Git
- Text Editor (e.g., Visual Studio Code, Atom, Sublime, etc.)
Step by step series of how to get a development env running
- Specify the PATH where you want to locate the project repository, for example:
D:\AN_OPEN_NETRA
- Open the PATH using command prompt/terminal/Git bash.
It is the easy one, I will not explain to you on how to do it, please do it yourself.
- Cloning project repository into your machine with the following command:
git clone https://github.com/praszxc/AN_OPEN_NETRA_BE.git
Once it is done, project repository is cloned at the following PATH:
D:\AN_OPEN_NETRA\AN_OPEN_NETRA_BE
- Install python virtual environment on your machine by opening command prompt/terminal and run the following command:
pip install virtualenv
- Create a virtual environment inside the project directory.
On your command prompt/terminal, point to the PATH where project directory located (in this case "D:\AN_OPEN_NETRA\AN_OPEN_NETRA_BE") and run the following command:
python -m venv env
- Before getting ready to operate with the project, don't forget to ALWAYS activate the virtual environment.
(You could do this using your Text Editor terminal instead, rather using your machine's command prompt/terminal).
- So, open project directory using your Text Editor you have installed, then open a new terminal inside it. Lastly activate the virtual environment using the following command:
Activate on Windows:
source env/Scripts/activate
Activate on Mac/Linux:
source env/bin/activate
Deactivate on Windows/Mac/Linux:
deactivate
- Inside project directory, you will see a file named requirements.txt, you need this file to install dependencies needed by the project. On the Text Editor terminal, run the following command:
pip install -r requirements.txt
Once all the requirements already installed, you need to check whether the project could run on your local machine or not by running the project
- Run the project
python manage.py runserver
Explain how to run the automated tests for this system
Explain what these tests test and why
Give an example
Explain what these tests test and why
Give an example
Add additional notes about how to deploy this on a live system
- Django - Web framework used
- Django REST Framework (DRF) - Web APIs toolkit
- Simple JWT - Provides a JSON Web Token authentication backend for the Django REST Framework.
- Kubernetes Python Client - Official Python client library for kubernetes.
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
We use SemVer for versioning. For the versions available, see the tags on this repository.
- Bagus Dwi Prasetyo - Initial work - praszxc
See also the list of contributors who participated in this project.
This project is licensed under the MIT License - see the LICENSE.md file for details
- Hat tip to anyone whose code was used
- Inspiration
- etc