Skip to content

Commit 16736d6

Browse files
committed
Update README.md with detailed setup instructions and project overview
1 parent 10b9c14 commit 16736d6

1 file changed

Lines changed: 85 additions & 2 deletions

File tree

README.md

Lines changed: 85 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,86 @@
1-
# project-canis
2-
Canis Major and the constellation Canis Minor, the “lesser dog,” are widely regarded as two hunting hounds that follow Orion, the great hunter of ancient Greek legends. The hounds are often pictured chasing a hare, represented by the constellation Lepus, which lies west of Canis Major at Orion's feet.
1+
# Project Canis
32

3+
[![Build](https://github.com/mrepol742/project-canis/actions/workflows/build.yml/badge.svg)](https://github.com/mrepol742/project-canis/actions/workflows/build.yml) [![Docker CI](https://github.com/mrepol742/project-canis/actions/workflows/docker.yml/badge.svg)](https://github.com/mrepol742/project-canis/actions/workflows/docker.yml)
4+
5+
A scalable, modular WhatsApp chatbot built in TypeScript. It leverages modern best practices, lean architecture, Prisma ORM, Dockerization, and environment-based configuration to deliver a robust, flexible successor to Project Orion.
6+
7+
## Prerequisites
8+
9+
- Node.js (>=24)
10+
- WhatsApp
11+
12+
## Getting started
13+
14+
1. **Clone repo**
15+
16+
```bash
17+
git clone https://github.com/mrepol742/project-canis.git
18+
cd project-canis
19+
20+
2. **Install dependencies**
21+
22+
```
23+
npm install
24+
```
25+
26+
3. **Setup environment variables**
27+
28+
```
29+
cp .env.example .env
30+
```
31+
Edit .env with your WhatsApp credentials, DB connection, and other keys.
32+
33+
4. **Run**
34+
35+
```
36+
npm run start
37+
```
38+
39+
#### Docker & Production
40+
41+
1. **Build image**
42+
43+
```
44+
docker build -t project-canis .
45+
```
46+
47+
2. **Run with Docker Compose**
48+
49+
```
50+
docker-compose up -d
51+
```
52+
53+
3. **Run with expose port**
54+
55+
```
56+
docker run -d -p 3000:3000 project-canis
57+
```
58+
59+
#### PM2
60+
61+
1. **Build**
62+
```
63+
npm run build
64+
```
65+
66+
2. **Start**
67+
68+
```
69+
cd dist
70+
pm2 start ecosystem.config.js
71+
```
72+
73+
#### NodeJS
74+
75+
1. **Build**
76+
77+
```
78+
npm run build
79+
```
80+
81+
2. **Start**
82+
83+
```
84+
cd dist
85+
npm run start
86+
```

0 commit comments

Comments
 (0)