-
Notifications
You must be signed in to change notification settings - Fork 1
Workspace setup
Semih Solmaz edited this page Oct 30, 2021
·
2 revisions
Utility tools and required tools and libraries for project development are listed:
- Your favourite IDE supporting python (preferred with DJango tools) suggested
- PGAdmin (tools for postgreSQL)
- Python3
- PostgreSQL server (can be installed on local machine or can be deployed locally as a docker container)
- git (version control)
- Docker (virtualization/deployment)
- A SSH client (Putty, Open SSH etc.)
- Clone repo to your local machine -
git clone https://github.com/CAKES-coding/swe574-group2
- Setup using command line or setup using IDE:
- Command line:
- cd into Project/Wikode directory
- Create a python virtual environment -
python -m venv wikode-env
- Activate virtual environment - win:
wikode-env\Scripts\activate.bat
linux:wikode-env\bin\activate
- IDE:
- Open IDE
- Create a new Django project
- Select Project/Wikode as project folder
- Setup Python interpreter
- Command line:
- Install dependencies:
- At the project root folder -
pip install -r requirements.txt
(for Mac psycopg2 library wont build use psycopg2-binary)
- At the project root folder -
- Create a '.env' file:
- At the same folder with setting.py create a file named
.env
fill in your application, API and DB information with below keys:
- At the same folder with setting.py create a file named
SECRET_KEY={{django_secret}}
DATABASE_NAME={{database_name}}
DATABASE_USER={{database_username}}
DATABASE_PASS={{database_password}}
DATABASE_HOST={{database_host}}
DATABASE_PORT={{database_port}}
- Try if your server running using manage.py -
python manage.py runserver