@safagayret/bemirror 2.0.0 → 2.2.0
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 +2 -2
- package/package.json +1 -1
- package/server.js +2 -2
package/README.md
CHANGED
|
@@ -64,7 +64,7 @@ npx @safagayret/bemirror --port=9000
|
|
|
64
64
|
|
|
65
65
|
Once started, open `http://localhost:8000` (or your configured port) to use the UI.
|
|
66
66
|
|
|
67
|
-
##
|
|
67
|
+
## Data Storage
|
|
68
68
|
|
|
69
69
|
Your mock data is stored in JSON files in your project root directory:
|
|
70
70
|
|
|
@@ -73,7 +73,7 @@ Your mock data is stored in JSON files in your project root directory:
|
|
|
73
73
|
|
|
74
74
|
These files are automatically created when you add data through the UI. You can commit them to your repository to share mock configurations with your team.
|
|
75
75
|
|
|
76
|
-
##
|
|
76
|
+
## 🛠 Usage
|
|
77
77
|
|
|
78
78
|
- Focus on the **Sidebar**: Create a **Project** first, then an **Entity**, and add your mapped **Endpoints**.
|
|
79
79
|
- **Edit your Endpoint:** In the main view, define routing paths, params, and payload rules.
|
package/package.json
CHANGED
package/server.js
CHANGED
|
@@ -50,8 +50,8 @@ const saveJsonFile = (filePath, data) => {
|
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
const createBemirrorApp = (options = {}) => {
|
|
53
|
-
const ENDPOINTS_FILE = options.endpointsFile || path.join(__dirname, '
|
|
54
|
-
const VARIABLES_FILE = options.variablesFile || path.join(__dirname, '
|
|
53
|
+
const ENDPOINTS_FILE = options.endpointsFile || path.join(__dirname, '../../..', 'endpoints.json')
|
|
54
|
+
const VARIABLES_FILE = options.variablesFile || path.join(__dirname, '../../..', 'variables.json')
|
|
55
55
|
const PUBLIC_DIR = options.publicDir || path.join(__dirname, 'public')
|
|
56
56
|
|
|
57
57
|
const app = express()
|