Skip to content

Commit

Permalink
Update Structures
Browse files Browse the repository at this point in the history
Signed-off-by: Abhinav Pandey <[email protected]>
  • Loading branch information
Sweetdevil144 committed Jun 29, 2024
1 parent fe65aa2 commit 4bb63ae
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 25 deletions.
18 changes: 17 additions & 1 deletion DEV_INTRO.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ The CatGPT project is structured as follows:
```bash
CatGPT/
├── ollama/
│ ├── Dockerfile
│ ├── start.sh
├── client/ # Frontend React + Typescript application
│ ├── src/
│ ├── public/
Expand All @@ -37,6 +41,7 @@ CatGPT/
├── README.md # Project overview and setup instructions
└── docker-compose.yml # Docker configuration for local development
└── run_llama.sh
```

## Setting Up Your Development Environment
Expand All @@ -55,7 +60,7 @@ cd CatGPT
Docker Compose is used to simplify the process of building and running multi-container Docker applications. To start both the frontend and backend services, use the following command:

```bash
./start.sh
./run_docker.sh
```

This command performs the following actions:
Expand Down Expand Up @@ -96,6 +101,17 @@ To bring your containers back online, use the following command :
docker-compose up -d
```

## Testing

To test if Ollama is up and runing, try the below bahs command :

```bash
curl http://localhost:11434/api/generate -d '{
"model": "llama3",
"prompt": "Why is the sky blue?"
}'
```

## Conclusion

This guide should help you get started with developing the CatGPT project using Docker. For any additional information or help, refer to the main `README.md` or contact the project maintainers.
3 changes: 1 addition & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,8 @@ services:
container_name: ollama
volumes:
- ollama:/root/.ollama
- ./ollama/start.sh:/start.sh
ports:
- "11434:11434"
- 11434:11434
entrypoint: ["/bin/bash", "/start.sh"]

volumes:
Expand Down
14 changes: 14 additions & 0 deletions run_docker.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash
GREEN="\033[0;32m"
BLUE="\033[0;34m"
YELLOW="\033[1;33m"
RED="\033[0;31m"
VIOLET="\033[0;35m"
NC="\033[0m"

echo -e "\n${YELLOW}🚀 Starting Docker Compose services...${NC}"
docker compose up -d
echo -e "\n"


echo -e "${GREEN}🏃 Start Chatting...${NC}"
22 changes: 0 additions & 22 deletions run_llama.sh

This file was deleted.

0 comments on commit 4bb63ae

Please sign in to comment.