- Node.js β₯ 22.0.0
- npm β₯ 10.0.0
Clone the repository and install dependencies:
# Clone the repository
git clone https://github.com/OttawaReactJS/forwardjs.com.git
# Navigate to project directory
cd forwardjs.com
# Install dependencies
npm installStart the development server:
# fetch Meetup data
npm run data
# start dev server
npm run dev
# site will be available at http://localhost:4321All 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:4321 |
npm run data |
Uses the scripts/fetchMeetupData.js script |
npm run build |
Build your production site to ./dist/ |
npm run lint |
Checks for format and lint errors |
npm run lint:fix |
Fixes format and lint errors |
npm run preview |
Preview your build locally, before deploying |
npm run astro ... |
Run CLI commands like astro add, astro check |
npm run astro -- --help |
Get help using the Astro CLI |
/
βββ public/
β βββ favicon.svg
βββ src/
β βββ layouts/
β β βββ Layout.astro
β βββ components/
β β βββ Hero.astro
β β βββ ...
β βββ data/
β β βββ pastEvents.json
β β βββ upcomingEvents.json
β βββ styles/
β β βββ global.css
β βββ pages/
β βββ index.astro
βββ scripts/
β βββ fetchMeetupData.js
βββ package.json