Skip to content

Latest commit

Β 

History

History
77 lines (59 loc) Β· 1.99 KB

File metadata and controls

77 lines (59 loc) Β· 1.99 KB

ForwardJS

πŸš€ Getting started

Prerequisites

  • Node.js β‰₯ 22.0.0
  • npm β‰₯ 10.0.0

Installation

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 install

Development

Start the development server:

# fetch Meetup data
npm run data

# start dev server
npm run dev

# site will be available at http://localhost:4321

🧞 Commands

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: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

🧱 Project Structure

/
β”œβ”€β”€ 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