WIP
We recommend to use yarn to manage the project's dependencies.
git clone git@github.com:govtech-malaysia/hansards-front.git
# Yarn
yarn install
yarn prepare
# NPM
npm install
npx prepare
cp .env.example .envThe following are the environment variables (.env) used for hansard.parlimen.gov.my. Please take note, there are only 2 variables required to get the app running, both of which are related to the Backend.
| Variables | Required | Default | Description |
|---|---|---|---|
| NEXT_PUBLIC_APP_URL | ⬜️ | http://localhost:3000 (development) | App domain. Optional |
| API_URL | ✅ | http://localhost:8000 (development) | Back-end URL |
| API_AUTH_TOKEN | ✅ | Create own | Authorization token for BE communication |
# Start development server
yarn dev
# Build production app
yarn build
# Start production server
yarn start
# Setup husky for githook
yarn prepare- Branch out from
staging& give the new branch a descriptive name eg:feat/hansard,fix/dropdown-bugetc. - After you're done developing,
git fetch && git merge origin/stagingto synchronize any new changes & resolve conflicts, if there is any. - Push the branch to remote and create a PR to
staging. Briefly describe the changes introduced in the PR. - Assign a core developer to review and wait for it to be approved.
- That's all. Happy developing!
Thank you for your willingness to contribute to this free and open source project by the Malaysian public sector! When contributing, consider first discussing your desired change with the core team via GitHub issues or discussions!
hansard.parlimen.gov.my is licensed under MIT
Copyright © 2023 Parliament of Malaysia