8000 GitHub - Fork-It-Community/forkit.community: Fork it! Community website source code
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fork-It-Community/forkit.community

Repository files navigation

↗️ Fork it! Community - Website

Installation

  1. Duplicate the .env.example file to a new .env file, and update the environment variables
cp .env.example .env
  1. Install dependencies
pnpm install
  1. Development
# Run the development server
pnpm dev

🚀 Project Structure

Inside the project, you'll see the following folders and files:

/
├── public/
├── src/
│   └── pages/
│       └── index.astro
└── package.json

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 components.

Any static assets, like images, can be placed in the public/ directory.

🧞 Commands

All commands are run from the root of the project, from a terminal:

Command Action
pnpm install Installs dependencies
pnpm run dev Starts local dev server at localhost:4321
pnpm run build Build your production site to ./dist/
pnpm run preview Preview your build locally, before deploying
pnpm run astro ... Run CLI commands like astro add, astro check
pnpm run astro -- --help Get help using the Astro CLI
0