My portfolio website ❤️
- Frontend - Astro Components
- Backend - Astro Endpoints
- Deployment - Vercel
-
Clone this repo:
git clone https://github.com/sarthikg/portfolio.git
-
Navigate to the project folder:
cd portfolio
-
Open the project in vs-code
code .
-
Install dev-containers extension in vs-cde if not already installed (ms-vscode-remote.remote-containers).
-
You'll see a popup appear on bottom-right corner of vs-code saying
Folder contains a Dev Container configuration file. Reopen folder to develop in a container
. Click onReopen in Container
. -
Start the server:
npm run dev
-
Clone this repo:
git clone https://github.com/sarthikg/portfolio.git
-
Navigate to the project folder:
cd portfolio
-
Run docker-compose
docker compose --file ./deployment/dev/docker-compose.yaml up
-
Start the server:
npm run dev
-
Clone this repo:
git clone https://github.com/sarthikg/portfolio.git
-
Navigate to the project folder:
cd portfolio
-
Install dependencies:
npm i
-
Start the server:
npm run dev
/
├── public/
├── src/
│ ├── assets/
│ ├── components/
│ ├── content/
│ ├── facades/
│ ├── layouts/
│ ├── pages/
│ ├── schemas/
│ ├── styles/
│ └── utils/
└── package.json
Directory | Description |
---|---|
public |
Contains assets which don't require processing |
assets |
Contains assets which requires processing like images which require scaling |
components |
Contains the Reusable UI Components |
content |
Contains the content like data, articles, etc. |
facades |
Contains functions to get content in components |
layouts |
Contains layouts for the pages |
pages |
Contains the pages/routes available in the site, including backend endpoints |
schemas |
Contains schemas for content |
styles |
Contains global styles like typography, colors, variables, etc. |
utils |
Contains utility functions used across the app |
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 build |
Build your production site to ./dist/ |
npm run preview |
Preview your build locally, before deploying |
npm run format:fix |
Fixes the formatting issues across all files |
npm run format:check |
Checks formatting issues across all files |
npm run lint:fix |
Fixes the linting issues across all files |
npm run lint:check |
Checks linting issues across all files |