React based Admin UI for OnlineSales (lightweight, extendable headless CMS for product websites)
This project is currently in active development
- node >= 18.13.0
- npm >= 9.3.0
This project uses .nvmrc
config. You can run nvm use
to install required version of node
Install dependencies:
npm install
Create .env
file and add configurations as shown in .env.sample
file. Refer below example:
CORE_API=http://localhost:45437
MSAL_CLIENT_ID=1f6244ca-xxxx-xxxx-xxxx-c41bc8286bcb
MSAL_AUTHORITY=https://login.microsoftonline.com/f1426473-xxxx-xxxx-xxxx-a7fe9420e5dd
CORE_API_SWAGGER=http://localhost:45437/swagger/v1/swagger.json
Fix any code formatting errors/warnings before do git commit.
-
Run
eslint
to list code formatting issuesnpm run lint
-
Run
prettier
to automatically fix possible formatting issues:npm run format
-
Fix any remaining errors/warnings manually before commit.
Note: If all formatting issues are not fixed, then
git commit
will fail due to husky pre-commit hook.
Start development server:
npm start
Open the app: