Astro-commerce
An ecommerce template designed for small businesses. While the current template features an audio device store, its structure is versatile and can be adapted to showcase various product types.
š Project Structure
The project adheres to the atomic design methodology, promoting modularity and reusability.
Key directories and files:
āāā public/
ā āāā assets/ # All images used.
ā āāā favicon.svg
āāā src/
ā āāā components/
ā ā āāā atoms
ā ā āāā molecules
ā ā āāā organisms
ā āāā design-system/
ā āāā layouts/
ā āāā pages/
ā āāā utils/
āāā package.json
š§ Commands
All commands are executed from the project root in the terminal:
Command | Action |
---|---|
npm install | Installs project dependencies |
npm run dev | Starts the local development server |
npm run build | Builds the production-ready site |
npm run preview | Locally previews the production build |
npm run astro ... | Executes Astro CLI commands |
npm run astro -- --help | Displays help information for the Astro CLI |