This is a Next.js project bootstrapped with create-next-app
.
First, run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
Run the Database JSON server:
# Install globally JSON-server first
npm install -g json-server
# Run the server
json-server --watch db.json --port 3003
Install foreman to run the two servers at the same time: gem install foreman
.
Then run both with foreman start
.
The JSON export must contain a study with only one key as pointed out there: typicode/json-server#435 .
In the current export you must clean the first keys and keep the groups
or add a study key. Remove the first {
.
{"studies" : [{"id": "toto", ... JSON ... ]}
The script in the convert
folder allow the conversion from
current Peac²h to db.json
.
- https://app.peac2h.io, October 2023.
Go to the covert folder and follow the README instructions.