The Melanoma Segmentation Web Application is a Next.js-based web application designed for doctors to upload dermoscopic images and leverage advanced machine learning models to detect and segment malignant melanoma regions. The frontend communicates with the Melanoma Segmentation API to provide seamless functionality.
This project uses Node.js 20+ and Yarn as the package manager. Ensure these are installed before proceeding.
-
Clone the repository and navigate to the project directory:
git clone https://github.com/fedemelo/MSWA cd mswa -
Install dependencies:
yarn install
-
Create an
.env.localfile in the root of the project and configure the following environment variable:NEXT_PUBLIC_API_BASE_URL=http://localhost:8000/v1.0
The
NEXT_PUBLIC_API_BASE_URLis the base URL of the backend API, MSAPI.
-
Start the development server:
yarn dev
The frontend will be running at
http://localhost:3000.
The project uses ESLint for linting and Prettier for code formatting. Run the following command to lint and format the code:
yarn lint && yarn format