@fecommunity/reactpress-server 4.0.0-beta.13 → 4.0.0-beta.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +20 -7
- package/package.json +19 -8
package/README.md
CHANGED
|
@@ -1,12 +1,23 @@
|
|
|
1
1
|
# @fecommunity/reactpress-server
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
> **ReactPress headless REST API — NestJS backend for the publishing platform.**
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
[](https://www.npmjs.com/package/@fecommunity/reactpress-server/v/beta)
|
|
6
|
+
[](https://www.npmjs.com/package/@fecommunity/reactpress-server)
|
|
7
|
+
[](https://github.com/fecommunity/reactpress/blob/master/server/LICENSE)
|
|
6
8
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
[
|
|
9
|
+
> **Deprecated** — from ReactPress 3.1 onward, the API ships inside [`@fecommunity/reactpress`](https://www.npmjs.com/package/@fecommunity/reactpress) (CLI). New projects should run `npx @fecommunity/reactpress init` instead of installing this package standalone.
|
|
10
|
+
|
|
11
|
+
This package remains available for legacy deployments and direct API integration. It powers themes, Admin, and desktop clients through [@fecommunity/reactpress-toolkit](../toolkit/).
|
|
12
|
+
|
|
13
|
+
| Capability | Detail |
|
|
14
|
+
| :----------- | :----- |
|
|
15
|
+
| **Content** | Articles, pages, media, comments, search, site settings |
|
|
16
|
+
| **Extensibility** | Plugin hook runtime and theme catalog (ReactPress 4.0) |
|
|
17
|
+
| **API** | Headless REST with JWT auth, rate limiting, Swagger/OpenAPI |
|
|
18
|
+
| **Database** | MySQL (production) or SQLite (local / desktop) |
|
|
19
|
+
|
|
20
|
+
[Documentation](https://reactpress-docs.vercel.app/) · [Migrate to CLI](../cli/) · [GitHub](https://github.com/fecommunity/reactpress)
|
|
10
21
|
|
|
11
22
|
## Quick start
|
|
12
23
|
|
|
@@ -42,7 +53,7 @@ pnpm run --dir server dev
|
|
|
42
53
|
```
|
|
43
54
|
|
|
44
55
|
| Command | Description |
|
|
45
|
-
|
|
|
56
|
+
| :------ | :---------- |
|
|
46
57
|
| `pnpm run dev` | Dev server with hot reload |
|
|
47
58
|
| `pnpm run build` | Production build |
|
|
48
59
|
| `pnpm run test` | Unit tests |
|
|
@@ -63,7 +74,7 @@ server/
|
|
|
63
74
|
The install wizard generates `.env`. Key variables:
|
|
64
75
|
|
|
65
76
|
| Variable | Description | Default |
|
|
66
|
-
|
|
|
77
|
+
| :------- | :---------- | :------ |
|
|
67
78
|
| `DB_HOST` | Database host | `127.0.0.1` |
|
|
68
79
|
| `DB_PORT` | Database port | `3306` |
|
|
69
80
|
| `DB_DATABASE` | Database name | `reactpress` |
|
|
@@ -90,3 +101,5 @@ OpenAPI spec from this server drives toolkit code generation (`pnpm run --dir to
|
|
|
90
101
|
## License
|
|
91
102
|
|
|
92
103
|
MIT — see [LICENSE](LICENSE).
|
|
104
|
+
|
|
105
|
+
<p align="center"><sub>Part of <a href="https://github.com/fecommunity/reactpress">ReactPress</a> — content owned by the system, frontend owned by developers.</sub></p>
|
package/package.json
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fecommunity/reactpress-server",
|
|
3
|
-
"version": "4.0.0-beta.
|
|
4
|
-
"deprecated": "
|
|
5
|
-
"description": "ReactPress NestJS
|
|
3
|
+
"version": "4.0.0-beta.14",
|
|
4
|
+
"deprecated": "Bundled in @fecommunity/reactpress CLI from v3.1. Run `npx @fecommunity/reactpress init` for new projects.",
|
|
5
|
+
"description": "ReactPress NestJS REST API (deprecated). Bundled in @fecommunity/reactpress CLI from v3.1. Headless CMS for articles, media, plugins, and themes",
|
|
6
6
|
"author": "fecommunity",
|
|
7
7
|
"license": "MIT",
|
|
8
|
+
"homepage": "https://reactpress-docs.vercel.app/",
|
|
9
|
+
"bugs": {
|
|
10
|
+
"url": "https://github.com/fecommunity/reactpress/issues"
|
|
11
|
+
},
|
|
8
12
|
"main": "dist/main.js",
|
|
9
|
-
"types": "dist/index.d.ts",
|
|
10
13
|
"bin": {
|
|
11
14
|
"reactpress-server": "./bin/reactpress-server.js"
|
|
12
15
|
},
|
|
@@ -19,23 +22,31 @@
|
|
|
19
22
|
],
|
|
20
23
|
"keywords": [
|
|
21
24
|
"reactpress",
|
|
22
|
-
"server",
|
|
23
25
|
"nestjs",
|
|
26
|
+
"headless-cms",
|
|
24
27
|
"cms",
|
|
25
28
|
"blog",
|
|
29
|
+
"rest-api",
|
|
26
30
|
"api",
|
|
27
|
-
"
|
|
31
|
+
"openapi",
|
|
32
|
+
"swagger",
|
|
33
|
+
"typescript",
|
|
34
|
+
"self-hosted"
|
|
28
35
|
],
|
|
29
36
|
"repository": {
|
|
30
37
|
"type": "git",
|
|
31
38
|
"url": "git+https://github.com/fecommunity/reactpress.git",
|
|
32
39
|
"directory": "server"
|
|
33
40
|
},
|
|
41
|
+
"publishConfig": {
|
|
42
|
+
"access": "public",
|
|
43
|
+
"registry": "https://registry.npmjs.org/"
|
|
44
|
+
},
|
|
34
45
|
"engines": {
|
|
35
|
-
"node": ">=
|
|
46
|
+
"node": ">=18"
|
|
36
47
|
},
|
|
37
48
|
"dependencies": {
|
|
38
|
-
"@fecommunity/reactpress-toolkit": "4.0.0-beta.
|
|
49
|
+
"@fecommunity/reactpress-toolkit": "4.0.0-beta.14",
|
|
39
50
|
"@nestjs/cli": "^6.9.0",
|
|
40
51
|
"@nestjs/common": "^6.7.2",
|
|
41
52
|
"@nestjs/config": "^0.6.3",
|