BCO Portal Local Deployment: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 21: | Line 21: | ||
##<code>cd bco_api/bco_api</code> (Note after this command, should under path ''/Users/Username/bco_api/bco_api'') | ##<code>cd bco_api/bco_api</code> (Note after this command, should under path ''/Users/Username/bco_api/bco_api'') | ||
##Make migrations: <code>python3.9 manage.py migrate</code> | ##Make migrations: <code>python3.9 manage.py migrate</code> | ||
* If run successfully, should observe the following:[[File:Screen Shot 2022-10-04 at 15.05.22.png|800px|thumb|center]] |
Revision as of 19:06, 4 October 2022
In order to work with BCO API locally, please follow the following steps to set up:
Mac OS:
- Clone the GitHub Repository
- Open Terminal, enter following commands:
git clone https://github.com/biocompute-objects/bco_api
cd bco_api
- Open Terminal, enter following commands:
- Switch to the latest release branch:
git switch 22.10
- Enter the repository, create a virtual environment, and install the required packages:
pyenv local 3.9.4
(Note: will show as pyenv: command not found if already installed)python3.9 -m venv env
source env/bin/activate
(activated virtual environment by showing (env) (base) MacBook-Pro-3:bco_api)python -m pip install -r requirements.txt
(if installation failed, make sure you are in the correct path: /Users/Username/bco_api)
- Modify Configuration file
- Once in the virtual environment, make sure you are on the path:/Users/Username/bco_api
- Edit the server.conf file:
vim bco_api/bco_api/server.conf
- Quick check to make sure the server can run
cd bco_api/bco_api
(Note after this command, should under path /Users/Username/bco_api/bco_api)- Make migrations:
python3.9 manage.py migrate
- If run successfully, should observe the following: