Added section "Setting up the project with PyCharm"
This commit is contained in:
@@ -4,12 +4,12 @@
|
||||
|
||||
- Python 3.6
|
||||
- Git CLI installed
|
||||
- Python, pip and git are available as commands (add to path if needed)
|
||||
|
||||
## Setting up the project manually
|
||||
- Python, pip and git are all available as command-line commands (add to path if needed)
|
||||
|
||||
Virtual environment will be created in *PyfaEnv* folder. Project will be cloned and run from the *PyfaDEV* folder. Separate virtual environment will be created so required libraries won't clutter the main python installation.
|
||||
|
||||
## Setting up the project manually
|
||||
|
||||
Clone the repo
|
||||
`git clone <repo> PyfaDEV`
|
||||
|
||||
@@ -22,7 +22,7 @@ Activate virtual environment
|
||||
For cmd.exe: PyfaEnv\scripts\activate.bat
|
||||
For bash: source <venv>/bin/activate
|
||||
```
|
||||
> For other OSes check [Python documentation](https://docs.python.org/3/library/venv.html)
|
||||
> For other OS check [Python documentation](https://docs.python.org/3/library/venv.html)
|
||||
|
||||
Install requirements for the project from *requirements.txt*
|
||||
`pip install -r PyfaDEV\requirements.txt`
|
||||
@@ -36,3 +36,31 @@ Test that the project is starting properly
|
||||
|
||||
|
||||
## Setting up the project with PyCharm/IntelliJ
|
||||
|
||||
Install PyCharm / Other IntelliJ product with Python plugin
|
||||
|
||||
After launching select *Check out from Version Control* -> *GIt*
|
||||
|
||||

|
||||
|
||||
Login to GitHub, paste repo URL and seect the folder to which to clone the project, press *Clone*.
|
||||
|
||||

|
||||
|
||||
After process is complete, open *File* -> *Settings* -> *Project* -> *Project Interpreter*.
|
||||
|
||||

|
||||
|
||||
Press on options and add new virtual environment.
|
||||
|
||||

|
||||
|
||||
Open project tree view and double-click on *requirements.txt*. Press *Install requirements*. Install all requirements.
|
||||
|
||||

|
||||
|
||||
Create new *Run Configuration*. Set correct *Script path* and *Python interpreter*.
|
||||
|
||||

|
||||
|
||||
Test that the project is starting properly.
|
||||
Reference in New Issue
Block a user