@@ -42,10 +42,6 @@ management dashboard](https://github.com/headlines-toolkit/ht-dashboard).
42
42
behavior—including ad frequency, feature flags, and maintenance status—without
43
43
requiring a client-side update.
44
44
45
- * 💾 ** Robust Data Management:** Securely manage core news data (headlines,
46
- topics, sources) through a well-structured API that supports flexible
47
- querying and sorting for dynamic content presentation.
48
-
49
45
* 📊 ** Dynamic Dashboard Summary:** Access real-time, aggregated metrics on
50
46
key data points like total headlines, topics, and sources, providing
51
47
an at-a-glance overview for administrative dashboards.
@@ -75,7 +71,7 @@ for more details.
75
71
76
72
1 . ** Prerequisites:**
77
73
* Dart SDK (` >=3.0.0 ` )
78
- * PostgreSQL (` >=14 .0 ` recommended)
74
+ * MongoDB (` >=5 .0 ` recommended)
79
75
* Dart Frog CLI (` dart pub global activate dart_frog_cli ` )
80
76
81
77
2 . ** Configuration:**
@@ -85,7 +81,7 @@ for more details.
85
81
Create a ` .env ` file in the root of the project or export the variable in
86
82
your shell:
87
83
```
88
- DATABASE_URL="postgres ://user:password@localhost:5432 /ht_api_db"
84
+ DATABASE_URL="mongodb ://user:password@localhost:27017 /ht_api_db"
89
85
```
90
86
91
87
3. **Clone the repository:**
@@ -101,11 +97,10 @@ for more details.
101
97
```bash
102
98
dart_frog dev
103
99
```
104
- The API will typically be available at `http://localhost:8080`. On the
105
- first startup, the server will connect to your PostgreSQL database, create the
106
- necessary tables, and seed them with initial fixture data. This process is
107
- non-destructive; it uses `CREATE TABLE IF NOT EXISTS` and `INSERT ... ON
108
- CONFLICT DO NOTHING` to avoid overwriting existing tables or data.
100
+ The API will typically be available at `http://localhost:8080`. On startup,
101
+ the server will connect to your MongoDB database and seed it with initial
102
+ fixture data. This seeding process is idempotent (using `upsert`
103
+ operations), so it can be run multiple times without creating duplicates.
109
104
110
105
111
106
**Note on Web Client Integration (CORS):** To allow web applications (like
0 commit comments