This is a repository for the website of UPBGE project.
The master
branch contains the source files for the website, which is built and
published to gh-pages
branch via a Github workflow.
- Node.js is needed to build and test the website.
- Node version needs to be lower than Node 17 due to unresolved issues from external NPM packages as mentioned here.
- Git or manual ZIP downloads are required for compiling to work properly.
If you just checked out the project and want to test the website on your local machine, you'll need to install the dependencies using the following command:
> npm install
The website requires documentation files from other repositories. You can either
download them using npm
(see below) or do it manually as explained in
here:
> npm run clone-docs
This step is only necessary the first time you clone the repository.
Once you have performed all the prerequisite steps, you can run the development server to test the website on your local machine:
> npm run start
While the command is running, you can access the website at http://localhost:3000.
If you are interested in developing the website, you can make changes to the source files while the server is running, which will trigger automatic update of the current page.
The project is written in React.js and Tailwind CSS, so you may want to read their documentation if you are not familiar with them.
Once you finish modifying the source, please make sure that the change doesn't contain any error and follows the coding convention by running the linter script before submitting a pull request:
> npm run lint-fix
Or to check the source without fixing problems:
> npm run lint
This project is licensed under the terms of the MIT license.