-
Notifications
You must be signed in to change notification settings - Fork 1
Environment Setup
Howard Powell edited this page Feb 22, 2021
·
2 revisions
This document outlines the various steps used to setup a development environment for working with the Caring Calendar code.
- Create a folder in your home directory called .aws if it does not already exist. For example:
Windows - C:\Users\<username>\.aws Linux - /home/<username>/.aws Mac - Users/<username>/.aws - Download the AWS credentials file from here
- NOTES:
- There is no file extension; if the editor adds one after the file is saved it must be renamed
- These are temporary credentials to be replaced once you have an account created
- NOTES:
- Request a new user in the AWS account
- Update the credentials file with the access key id and secret access key provided
- Ensure python3.8 is installed
sudo apt update sudo apt- install python3.8 python3.8-dev python3.8-distutils python3.8-venv - Install git
sudo apt install git - Install Node Version Manager (nvm) using the installation steps listed on here
- Close terminal and reopen
- Install the latest Node LTS 12.x version using nvm
- Install PyCharm
sudo apt install snapd sudo snap install pycharm-community --classic - Clone the Caring Calendar API project
- Change into the 'develop' branch if not already there
- Follow the steps outlined in the README file to install the required packages and libraries
Due to the limitations in the way python3 is setup the project cannot be run natively in Windows. The recommended solution is to setup the code using a virtual machine image with all of the development tools pre-installed. The steps for this can be found below:
- Install the latest version of VirtualBox
- Download the base image from here
- Open Virtual Box and click Import and select the location of the downloaded OVA file
- Ensure you uncheck the USB option
- Once imported start the VM
- Login with the 'CT User'
- You should be prompted to change the user's password
- The old password is Ch8ngeMe!
- Clone the Caring Calendar API project
- Change into the 'develop' branch if not already there
- Run the project locally using the AWS credentials profile name called 'civic-tech'
Content coming...