Second Chapter is a project that gives books a second life, offering readers the opportunity to enjoy stories through books that have retained their relevance. Our goal is to create a place where every work finds a new owner, and every word continues to live.
This project is a fully functional online platform for buying used books.
-
Frontend:
-
State Management:
-
Router:
-
Testing:
-
Code Quality:
-
Automation:
-
E-Commerce Platform:
-
Deployment:
-
Data fetching and validation:
-
CI/CD:
To get started with this project locally, follow these steps:
-
Clone the repository
- With HTTPS:
git clone https://github.com/zagorky/second-chapter.git
- With SSH:
git clone git@github.com:zagorky/second-chapter.git
-
Install dependencies
cd second-chapter npm install -
Run the project locally
Get and add .env file
npm run dev
| Script | Description | Usage |
|---|---|---|
dev |
Start the development server with Vite. | npm run dev |
build |
Build the project using TypeScript and Vite. | npm run build |
lint |
Run ESLint to check for code issues. | npm run lint |
lint:fix |
Automatically fix linting issues. | npm run lint:fix |
preview |
Preview the built project. | npm run preview |
type-check |
Run TypeScript's type-checking without emitting output. | npm run type-check |
format |
Format the code with Prettier. | npm run format |
format:check |
Check if the code is formatted correctly using Prettier. | npm run format:check |
knip |
Run Knip to check for unused code. | npm run knip |
test |
Run Vitest tests. | npm run test |
test:ui |
Run Vitest tests with the interactive UI. | npm run test:ui |
test:coverage |
Run Vitest tests with coverage reporting. | npm run test:coverage |
prepare |
Run Husky to set up git hooks. | npm run prepare |
lint-staged |
Run linting on staged files using lint-staged. | npm run lint-staged |
lint:styles:fix |
Automatically fix CSS issues using Stylelint. | npm run lint:styles:fix |
lint:styles |
Run Stylelint to check for CSS issues. | npm run lint:styles |
check:fix |
Run with fix type-check, lint, format, Knip, tests, and fix CSS issues in one command. | npm run check:fix |
check |
Run type-check, lint, format check, Knip, and tests in one command. | npm run check |
We are a team of beginner developers working on our capstone project with support from experienced mentors who guide us throughout the development process.