Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Smooth out development environment setup #17

Merged
merged 1 commit into from
Jan 27, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,5 @@ eggs/
*.egg
TODO.md
spot/benchmarks/*/workload.json

spot-env/
35 changes: 25 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,30 @@ Created by Capstone Group 59

## Setup

- Clone the repository
- Change your current directory to the root directory of the repository
- Install the repository as a package
### Requirements
- Python 3
- AWS CLI (configured with `aws configure`)
- MongoDB (by default, accessible on `localhost:27017`)

```bash
pip install -e .
```
- Run spot/main.py
### Steps
1. Create and activate a virtualenv.
```bash
python3 -m venv spot-env
source spot-env/bin/activate
```

2. Install required packages.
```
pip install -r requirements.txt
```

3. Install SPOT as an editable package.
```bash
pip install -e .
```

4. Run it!
```bash
spot
```

```bash
python3 spot/main.py
```
7 changes: 7 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
pandas==1.4.0
pymongo==4.0.1
matplotlib==3.5.1
requests==2.27.1
requests_futures==1.0.0
boto3==1.20.44
sklearn
3 changes: 3 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
},
install_requires=[],
extras_require={},
entry_points={
'console_scripts': ['spot=spot.main:main']
},
description='Serverless Price Optimization Tool',
version='0.0.1'
)