N-of-1 Companion is a web application designed to facilitate the conduct of N-of-1 therapeutic tests. It allows you to design and manage your tests, collect patient data, perform statistical analysis and many other features.
This tool is offered by the Clinical Pharmacology Department of the University Hospital of Vaud (PCL - CHUV, Switzerland). With the collaboration of the School of Engineering and Management Vaud (HEIG-VD).
This is the frontend part of the N-of-1 Companion web application.
Build with:
The backend part of the application can be found here.
Please ensure that the following items are installed on your operating system :
Important : Install the backend part of the application.
Create a .env
file if not present and configure the following environment variables :
# Backend API URL
NEXT_PUBLIC_BACKEND_API_URL=http://your_backend_application_url # /!\ without a trailing /
# Application URL, used to send a link to an application page by email
NEXT_PUBLIC_APP_URL=https://nof1-app.vercel.app/ # /!\ without a trailing /
Clone the repository and install the project dependencies using the following command in the project root folder:
$ yarn install
Commands:
# development mode
$ yarn dev
# production mode
$ yarn build
$ yarn start
Default url : http://localhost:3000/ (or port :process.env.PORT)
There is no guarantee that the project will be further developed. But you are welcome to fork the project.
Initially developed as a Bachelor study project at the HEIG-VD, then taken over as a Junior Software Engineer.
Distributed under the GNU AGPLv3 license. See LICENSE for more information.