Contributors website is for people to get a glimpse of moja global's projects and their working. The website also holds blogs and guides by the moja family to help you better understand our work and hopefully learn from others experience.
Start developing on GitPod and see the code in action.
moja global is a collaboration under the Linux Foundation that aims for the widest possible collaboration on and use of credible tools to better manage the land sector. The flagship software is the Full Lands Integration Tool (FLINT), a tool to estimate emissions and sinks of greenhouse gasses from forestry and agriculture.
Before setting up the project make sure the LTS (Long Term Support) version of NodeJs is installed with a package manager of your choice. We recommend NPM or Yarn.
-
Fork the repository.
-
Clone the repository.
https://github.com/<YOUR_GITHUB_USERNAME>/community-website.git
- Go into the directory containing the project.
cd community-website/website
- Install all the dependencies
yarn
- Start the development server.
yarn start
- Build the Community website:
yarn build
- Serve an optimized production build:
yarn serve
The Project has ESLint configured to properly format the code. This enables developer to follow the same coding style and to avoid improperly-linted code. All the commands below should be run from the website
directory.
yarn lint
This command logs all warnings and lint errors and scope of fixes/improvements.
yarn lint:fix
This option instructs ESLint to try to fix as many issues as possible. The fixes are made to the actual files themselves and only the remaining unfixed issues are output.
eslint --ignore-path tmp/.eslintignore file.js
This option allows you to specify the file to use as your .eslintignore
. By default, ESLint looks in the current working directory for .eslintignore
. You can override this behavior by providing a path to a different file.
We use Vercel for deployment. To enable Vercel, create an account and through the Vercel dashboard, you can create a new project by importing a GitHub repository. The repository should be a fork of the moja-global/community-website
repository. Vercel will automatically configure the build settings for the project and deploy it. You can further configure the domain name and other settings in the Vercel dashboard.
If you are using GitHub pages for hosting, this command is a convenient way to build the website and push to the gh-pages
branch.
GIT_USER=<Your GitHub username> USE_SSH=true yarn deploy
You can optionally deploy it using Docker Compose. Push the following commands to your terminal.
docker compose up --build
moja global welcomes a wide range of contributions as explained in Contributing document and in the About moja-global Wiki.
- You can find FAQs on the Wiki.
- If you have a question about the code, submit user feedback in the relevant repository
- If you have a general question about a project or repository or moja global, join moja global and
- submit a discussion to the project, repository or moja global team
- submit a message to the relevant channel on moja global's Slack workspace.
- If you have other questions, please write to info@moja.global
Thanks goes to these wonderful people (emoji key):
This project follows the all-contributors specification. Contributions of any kind welcome!