/peac2h-embedded

Embeddable version of Peac2h for binary distribution.

Primary LanguageJavaScript

This is a Next.js project bootstrapped with create-next-app.

Getting Started

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

Run both with foreman

Install foreman to run the two servers at the same time: gem install foreman.

Then run both with foreman start.

JSON Server managmeent

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.

Go to the covert folder and follow the README instructions.