You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-[PowerShell](https://learn.microsoft.com/en-us/powershell/) (for automated deployment on Windows)
57
+
58
+
### Quick Start (Automated Deployment)
59
+
60
+
The easiest way to set up EventStack is using the automated PowerShell deployment script. This script handles database setup, environment configuration, dependency installation, and server startup automatically.
61
+
62
+
1.**Clone the Repository**:
63
+
```sh
64
+
git clone <YOUR_REPOSITORY_URL>
65
+
cd eventstack
66
+
```
67
+
68
+
2.**Run the Deployment Script**:
69
+
```powershell
70
+
.\deploy-eventstack.ps1
71
+
```
72
+
73
+
The script will:
74
+
- Check for required tools (psql, npm, node)
75
+
- Create the database if it doesn't exist
76
+
- Apply the database schema
77
+
- Create/update the backend `.env` file
78
+
- Install dependencies for both backend and frontend
79
+
- Start both servers in separate windows
80
+
81
+
**⚠️ Security Warning**: The script uses default values for database password and JWT secret. **You should override these in production or for any shared environment.**
82
+
83
+
3.**Deployment Script Parameters**:
84
+
85
+
The script accepts the following parameters with their default values:
86
+
87
+
**Database Configuration**:
88
+
-`-DbName` (default: `eventstack`) - PostgreSQL database name
89
+
-`-DbHost` (default: `localhost`) - PostgreSQL server host
90
+
-`-DbPort` (default: `5432`) - PostgreSQL server port
5.**Cleanup**: When you're done, press `ENTER` in the deployment script window to clean up services and optionally drop the database. Press `CTRL+C` to exit without dropping the database.
144
+
145
+
**Important Security Notes**:
146
+
- The default database password (`Jarshi17225`) and JWT secret (`change-me-now`) are **not secure** and should be changed for any non-local development environment.
147
+
- Always use strong, unique passwords and JWT secrets in production.
148
+
- The JWT secret must be at least 6 characters long.
149
+
150
+
### Manual Setup
151
+
152
+
If you prefer to set up the project manually or are on a non-Windows system:
57
153
58
-
### 1. Clone the Repository
154
+
####1. Clone the Repository
59
155
60
156
```sh
61
157
git clone <YOUR_REPOSITORY_URL>
62
158
cd eventstack
63
159
```
64
160
65
-
### 2. Database Setup
161
+
####2. Database Setup
66
162
67
-
1. Make sure your PostgreSQL server is running.
68
-
2. Create a new database for the project.
69
-
3. Execute the schema and sample data scripts to initialize your database:
70
-
- Run the contents of `apps/backend/database/schema.sql` to create the tables.
71
-
- (Optional) Run the contents of `apps/backend/database/sample_data.sql` to populate the database with initial data.
0 commit comments