To begin modifying the website, follow these steps:
First, clone the repository to your local machine:
git clone https://github.com/FRCTeam1277/Team-1277-Website.git
cd Team-1277-WebsiteEnsure you have the following installed on your system:
- Node.js (version 18 or higher) and npm (Node Package Manager)
- Download Node.js
- Verify installation:
node -v npm -v
-
Text Editor: Use a code editor like Visual Studio Code.
-
Git: Ensure Git is installed for version control.
- Download Git
- Verify installation:
git --version
After cloning the repository, install the required dependencies in the project root folder:
npm installStart the development server to test the website locally:
npm run devThis will start the Vite development server. Open your browser and navigate to http://localhost:5173 to view the website.
To create a production-ready build of the website:
npm run buildThe build files will be generated in the dist directory.
To preview the production build locally:
npm run previewEnsure you have the correct permissions to push changes to the repository.
- The
package.jsonfile contains all the scripts and dependencies required for the project. - For linting and code quality checks, you can run:
npm run lint
- Use the
.gitignorefile to exclude unnecessary files from version control. - For any issues, refer to the README.md file or contact the repository maintainer.