The site for the JS Hub Zim organisation. It has been swithched to Astro as the initial build would not be easily maintanable.
- Astro
- TailwindCSS
I switched it to Astro to make it easier to maintain - raw HTML doesn't make sense. There is better composability with Astro.
-
Clone the project:
git clone https://github.com/JS-Hub-ZW/jshub-website-astro
-
Navigate to the project
cd jshub-website-astro
-
Install Dependencies
yarn or npm install or pnpm install
-
Run the server
yarn dev or npm run dev/start or pnpm dev/start
Astro looks for .astro
or .md
files in the src/pages/
directory. Each page is exposed as a route based on its file name.
There's nothing special about src/components/
, but that's where we like to put any Astro/React/Vue/Svelte/Preact components.
Any static assets, like images, can be placed in the public/
directory.
All commands are run from the root of the project, from a terminal:
Command | Action |
---|---|
npm install |
Installs dependencies |
npm run dev |
Starts local dev server at localhost:3000 |
npm run build |
Build your production site to ./dist/ |
npm run preview |
Preview your build locally, before deploying |
- Follow the pattern you see in the project. If you have any questions, please contact us.
- Please make sure your contribution solves a particular problem.
- Please make sure your contribution is in a way that is easy to understand. It is not necessary to write a lot of code.
- Pull requests without proper description are not accepted.
- Respect others
- Shame on the person who does not respect others
- Shame on the person who does not contribute
- Shame on the person who does not follow the pattern
- Shame on the person who does not follow the rules
- Shame on the person who does not follow the guidelines
- Shame on the person who abuses the cluster
- Blessed be the person who respects others
- Blessed be the person who contributes
- Blessed be the person who follows the pattern
- Blessed be the person who follows the rules
- Blessed be the person who follows the guidelines
- Blessed be the person who does not abuse the cluster