Skip to content

Commit 0287538

Browse files
committed
feat(docs): Update README.md and CONTRIBUTING.md
1 parent 890e380 commit 0287538

File tree

2 files changed

+102
-21
lines changed

2 files changed

+102
-21
lines changed

CONTRIBUTING.md

Lines changed: 64 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -127,33 +127,84 @@ Using clear and consistent commit messages makes it easier for everyone to under
127127

128128
To set up your local development environment:
129129

130+
### Option 1: Using Docker (Recommended)
131+
132+
Docker provides a consistent development environment with all dependencies pre-configured.
133+
130134
1. **Clone the Repository:**
135+
131136
```bash
132-
git clone https://github.com/<your-username>/sim-studio.git
137+
git clone https://github.com/<your-username>/sim.git
138+
cd sim
133139
```
134-
2. **Navigate to the Project Directory:**
140+
141+
2. **Start the Docker Environment:**
142+
135143
```bash
136-
cd sim-studio
144+
docker compose up -d
137145
```
138-
3. **Install Dependencies:**
139-
- Using Yarn:
140-
```bash
141-
yarn install
142-
```
143-
- Or using NPM:
146+
147+
Or use the convenience script which handles environment setup and migrations:
148+
149+
```bash
150+
chmod +x start_simstudio_docker.sh
151+
./start_simstudio_docker.sh
152+
```
153+
154+
This will:
155+
156+
- Start a PostgreSQL database container
157+
- Build and run the Next.js application with hot-reloading
158+
- Set up all necessary environment variables
159+
- Apply database migrations automatically
160+
161+
3. **View Logs:**
162+
163+
```bash
164+
docker compose logs -f simstudio
165+
```
166+
167+
4. **Make Your Changes:**
168+
- Edit files in your local directory
169+
- Changes will be automatically reflected thanks to hot-reloading
170+
171+
### Option 2: Manual Setup
172+
173+
If you prefer not to use Docker:
174+
175+
1. **Clone the Repository:**
176+
```bash
177+
git clone https://github.com/<your-username>/sim.git
178+
cd sim
179+
```
180+
2. **Install Dependencies:**
181+
182+
- Using NPM:
144183
```bash
145184
npm install
146185
```
147-
4. **Run the Development Server:**
148-
- With Yarn:
186+
187+
3. **Set Up Environment:**
188+
189+
- Copy `.env.example` to `.env`
190+
- Configure database connection and other required variables
191+
192+
4. **Set Up Database:**
193+
194+
- You need a PostgreSQL instance running
195+
- Run migrations:
149196
```bash
150-
yarn dev
197+
npm run db:push
151198
```
199+
200+
5. **Run the Development Server:**
201+
152202
- With NPM:
153203
```bash
154204
npm run dev
155205
```
156-
5. **Make Your Changes and Test Locally.**
206+
207+
6. **Make Your Changes and Test Locally.**
157208

158209
---
159210

README.md

Lines changed: 38 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,43 +9,73 @@
99
1. Self-host
1010
2. [Join the Waitlist](https://simstudio.ai) for the cloud-hosted beta
1111

12-
## Getting Started
12+
## Quick Start
1313

14-
1. Clone the repository
14+
The quickest way to get Sim Studio running locally:
15+
16+
1. **Clone the repository**
1517

1618
```bash
1719
git clone https://github.com/simstudioai/sim.git
18-
cd sim-studio
20+
cd sim
21+
```
22+
23+
2. **Start with Docker**
24+
25+
```bash
26+
docker compose up -d
27+
```
28+
29+
Or use the convenience script for automatic setup:
30+
31+
```bash
32+
chmod +x start_simstudio_docker.sh
33+
./start_simstudio_docker.sh
1934
```
2035

21-
2. Install dependencies
36+
This will start Sim Studio at http://localhost:3000 with a local PostgreSQL database.
37+
38+
3. **[Optional] Configure Your Environment**
39+
40+
Copy `.env.example` to `.env` and configure:
41+
42+
- Authentication secrets (required for login functionality)
43+
- API keys:
44+
- **Essential**: Resend API key (for authentication emails)
45+
- **Optional**: OpenAI, Anthropic, etc. (for specific block functionality)
46+
47+
## Manual Setup
48+
49+
If you prefer not to use Docker:
50+
51+
1. **Install dependencies**
2252

2353
```bash
2454
npm install
2555
```
2656

27-
3. Set up your environment variables
57+
2. **Set up environment variables**
2858

2959
Copy `.env.example` to `.env` and configure:
3060

3161
- Database connection (PostgreSQL)
3262
- Authentication secret
3363
- Email provider (Resend)
3464

35-
4. Set up the database
65+
3. **Set up the database**
3666

3767
```bash
3868
# Push the database schema
3969
npx drizzle-kit push
4070
```
4171

42-
5. Start the development server
72+
4. **Start the development server**
4373

4474
```bash
4575
npm run dev
4676
```
4777

48-
6. Open [http://localhost:3000](http://localhost:3000)
78+
5. **Open [http://localhost:3000](http://localhost:3000)**
4979

5080
## Tech Stack
5181

0 commit comments

Comments
 (0)