Skip to content

Add detailed setup instructions to README.md with sample environment file#41

Draft
Copilot wants to merge 5 commits intomainfrom
copilot/fix-37
Draft

Add detailed setup instructions to README.md with sample environment file#41
Copilot wants to merge 5 commits intomainfrom
copilot/fix-37

Conversation

Copy link

Copilot AI commented May 22, 2025

This PR adds comprehensive setup instructions to the README.md file, making it easier for new users to set up and run the Sustineo application. The updates include:

  • Detailed project overview explaining Sustineo's purpose
  • List of prerequisites including required software and Azure services
  • Complete environment setup instructions with all required variables
  • Step-by-step installation instructions for both API and web components
  • Instructions for running the application locally
  • Docker deployment guide for containerized deployment
  • Azure resource requirements and configuration details

Additionally, I've added a sample .env.example file in the API directory that users can copy and customize with their own credentials.

These changes ensure that new users can quickly understand what's needed to get Sustineo running without having to dig through the codebase.

Fixes #37.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: sethjuarez <115409+sethjuarez@users.noreply.github.com>
Copilot AI changed the title [WIP] Add section to README.md explaining how to run the app Add detailed setup instructions to README.md with sample environment file May 22, 2025
Copilot AI requested a review from sethjuarez May 22, 2025 04:37
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file should actually live in the root directory (to make sure VSCode F5 run works correctly).

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've moved the .env.example file from the api/ directory to the root directory as requested. This should ensure VSCode F5 run works correctly since the dotenv library looks for the .env file in the project root. The change is in commit 62b689c.

README.md Outdated
Comment on lines 5 to 6
- Magic function calling mapping for generic local function calls (A)
- Backchannel with utility function calls (A+S)*
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This section can be removed

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've removed the bullet points from lines 5-6 in README.md as requested. The changes are in commit 0a05648.

@sethjuarez
Copy link
Owner

Can we change this README to a SETUP.md instead?

Co-authored-by: sethjuarez <115409+sethjuarez@users.noreply.github.com>
Co-authored-by: sethjuarez <115409+sethjuarez@users.noreply.github.com>
Copy link
Author

Copilot AI commented May 22, 2025

Can we change this README to a SETUP.md instead?

I've moved all the detailed setup instructions from README.md to a new SETUP.md file as requested. The README.md now simply introduces Sustineo and points to SETUP.md for detailed instructions. The changes are in commit 0a05648.

Copy link
Owner

@sethjuarez sethjuarez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall pretty good - perhaps we should mention that the Cosmos dB storage contains the app settings for each scenario and that the storage account saves any images generated.

Comment on lines +46 to +48
- WebSocket Endpoint: `ws://localhost:8000`
- API Endpoint: `http://localhost:8000`
- Web Endpoint: `http://localhost:5173`
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can mention here that there is a GitHub Action in this project that rewrites these to match the Azure Container App by using the Azure CLI to query for the correct FQDNs

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've added a note in the Web Environment Setup section about the GitHub Action that automatically rewrites the endpoints using Azure CLI to query for the correct FQDNs when deploying to Azure Container Apps. The change is in commit 8a841b7.

SETUP.md Outdated
Comment on lines 87 to 90
2. Start the FastAPI application:
```bash
fastapi run main.py
```
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is awesome maybe add something about how the vscode settings allow for this to be run using F5. This also may not work given that I usually put a virtual environment at the root of the project so it would need to be run from the root - can we fix that?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've updated the API run instructions to work from the root directory using uvicorn api.main:app --reload instead of running from the api/ directory. I've also added information about the VSCode F5 functionality that lets users run and debug the API with a single keystroke. The changes are in commit 8a841b7.

…guration

Co-authored-by: sethjuarez <115409+sethjuarez@users.noreply.github.com>
Copy link
Author

Copilot AI commented May 23, 2025

Overall pretty good - perhaps we should mention that the Cosmos dB storage contains the app settings for each scenario and that the storage account saves any images generated.

I've added information about the purpose of the Cosmos DB and Storage resources in the SETUP.md file, clarifying that Cosmos DB stores app settings for each scenario and the Storage account saves generated images. These changes are in commit 8a841b7.

@msabramo
Copy link

Bump

@msabramo
Copy link

msabramo commented Jun 7, 2025

Ditto the comment I just made on #40 😀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add section to README.md explaining how to run the app

3 participants

Comments