Ensure that you have the following installed on your system:
- WSL (Windows Subsystem for Linux)
- Ubuntu
- VS Code
- Podman
-
Restart your system and open the terminal.
wsl -l -v
-
Open Ubuntu.
# It will open your VS code on your Ubuntu WSL code -
Make a directory in the VS Code Terminal.
mkdir <your-repo-name> cd <your-repo-name>
-
Initialize Git in VS Code Terminal.
git init git config --global user.name "iitm-rollno" git config --global user.email "iitm-email" git remote add <your-repo-name> <your-repo-link.git> git pull <your-repo-name> main
-
Authenticate yourself using VS Code to allow authentication for the repo.
-
Go to your repo. On the left extreme of VS Code, there’s a node-type shape; open that and figure out where you have created the repo using the open folder.
-
Open Ubuntu Terminal (not VS Code terminal).
cd <your-repo-name> ls # to list all the files and ensure you are in the GitHub repo
-
Do your first commit. Make a new file
app.pyin VS Code.
Make sure you have Podman installed. Run the following command to build the Docker image:
podman build -t user-name/repo-name .- Run the container with the following command:
podman run -e AIPROXY_TOKEN=$env:AIPROXY_TOKEN -p 8000:8000 user-name/repo-name-
You can access the API at http://localhost:8000/. Use the following endpoints:
-
Home Endpoint: GET /
- Returns a simple message to check if the server is running.
-
Run Task Endpoint: POST /run?task=<task_description>
- Execute a specific task by providing a task description.
-
Read File Endpoint: GET /read?path=<file_path>
- Read the contents of a specified file.
- To run a specific task, use:
curl -X POST "http://localhost:8000/run?task=Format+/data/format.md+using+prettier"- To read a file, use:
curl "http://localhost:8000/read?path=/data/format.md"- Fork the repository.
- Create a new branch for your feature or bug fix.
- Make your changes and commit them.
- Push your changes to your forked repository.
- Create a pull request to the main repository.
- This project is licensed under the MIT License. See the LICENSE file for details.