This document describes how to set up your development environment to build and develop mango-ui.
- Prerequisite Software
- Code Editor
- Getting the Sources
- Installing NPM Modules
- Start Development Server
- Building For Production
- Cleaning
Before you can run mango-ui you must install and configure the following products on your development machine:
-
Git and/or the GitHub app; GitHub's Guide to Installing Git is a good source of information.
-
Node.js LTS which is used to run a development web server, and generate distributable files. We recommend using the Node Version Manager (NVM) to install Node.js and NPM on your machine. Once you have NVM installed you can use the required Node.js/NPM versions via:
cd mango-ui nvm use
The recommended editor for developing mango-ui is VS Code with the following settings and extensions. You can easily use another editor of your choice as long as you can replicate the code formatting settings.
Your editor should follow the same settings found in .vscode/settings.json.
- Prettier - Code formatter
- ESLint
- Stylelint
- EditorConfig for VS Code
- Vitest
- Path Intellisense
- Code Spell Checker
Clone the mango-ui repository:
cd mango-ui
Install the JavaScript modules needed to build mango-ui:
npm install
Run npm run dev
for a dev server. Navigate to http://localhost:5173/
. The app will automatically reload if you change any of the source files.
Run npm run build
to build a production version of the project. The build artifacts will be stored in the build/
directory.