This is the official repository of the gruppettoruhr cycling club. Feel free to contribute and enhance the website with more features that help our club, especially our members. If you want to contribute, please follow the official contribution guidelines.
This section should help you to set up a local development environment with a running instance of the gruppettoruhr.cc website.
The environment might run with other LTS or major version releases of node and npm, but the following versions are recommended to avoid issues.
node ^14.0.0npm ^6.14.9
If you fulfil the prerequisites you should be able to install the development dependencies with the following command:
npm installThe development dependencies are needed to bootstrap the project packages (e.g. website/backend). It is worth mentioning that we are using lerna to manage multiple independent node projects inside one repository. After a successful installation you should be able to install the package dependencies with the following command:
npm run bootstrapAfter you have successfully installed all dependencies, you should be able to start a development server with the following command:
npm run startThe server will run on port 3000, and you can reach the frontend at localhost:3000.
The projects is split into two parts:
- Frontend - contains the website/frontend
- Backend - contains a headless CMS
Depending on your idea/implementation you might need to update/add code in both packages.
The frontend makes use of the next.js framework, which bundles node.js and react.js together to let you easily use techniques like server-side rendering. To make use of all features next.js provides, the folder structure and configuration must strictly match the next.js guidelines and requirements. A good place to start is the pages folder inside the website package, which lets you easily add a new page.
In progress
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests and the documentation as appropriate.
- Frederik Aulich - Initial work - Kiesen
This project is licensed under the MIT license - for details take a look at LICENSE.md