Before you begin, ensure you have the following prerequisites:
- Node.js and npm (Node Package Manager) installed on your machine.
- Clone this repository to your local machine:
git clone https://github.com/xuanli286/IS212-g4t1.git
- Change the working directory to your project folder:
cd IS212-g4t1
- Install frontend project dependencies:
cd frontend
npm install
- Install backend project dependencies:
cd..
cd backend
pip install -r requirements.txt
- Set up backend environment
Option 1 : AWS EC2 (set up Continuous Development)
Follow steps in CD Documentation
Option 2: Local database environment Follow steps in Local Backend DocumentationNotes:
Make sure your working directory is IS212-g4t1/backend
Make sure frontend/src/store/useConstStore.js line 12 is commented out and line 13 uncommented. This switches the database environment from AWS EC2 to local.cd production_backend python g4t1.py
Follow steps in CD Documentation
Note: Tests are currently using AWS backend links. Replace links if different.
Follow steps in Local Backend Documentation
Note: Replace backend links to local environment links.
- Find conftest.py file, directory -> IS212-g4t1/backend/tests/conftest.py
- Replace
backend_base_url
&backend_base_url_production
- Change working directory to frontend
cd frontend
- Run all tests using NPM
npm run test
- Change working directory to tests
cd backend/tests
- Run all tests using Pytest
pytest test_IG_<User Story Issue Key>.py