Prerequisites
Before you begin, ensure you have the following installed:- Node.js (v16 or higher)
- npm (comes with Node.js)
- Git for version control
- A code editor (VS Code recommended)
If you know JavaScript, HTML, and CSS well, you’ll be close to being able to work with Vue. React, Next, Gatsby, and other JS frameworks are quite similar to Vue.js.
Clone the Repository
Install dependencies
Install all project dependencies using npm:This will install all dependencies listed in
package.json, including Vue 3, TypeScript, Pinia, Vite, and development tools.Configure environment variables
Duplicate the The
.env-template file and rename it to .env:.env file is gitignored and won’t be committed to GitHub. Current template includes:Set
VITE_EDIT_COLORS=true if you want to enable color editing features during development.Available Scripts
The project includes several npm scripts for different tasks:Development Server Details
The Vite development server is configured invite.config.js:19-22 with:
- Port: 8080 (maintains consistency with legacy ports)
- Allowed hosts: localhost, *.pages.dev, stevenson.space
- Hot Module Replacement (HMR): Enabled by default
Troubleshooting
Common Issues
Port already in use: If port 8080 is already occupied, you can modify the port invite.config.js or kill the process using that port.
Module not found errors: Ensure all dependencies are installed with npm install.
TypeScript errors: The project uses TypeScript with strict type checking. Check tsconfig.json for configuration details.
Next Steps
Once your environment is set up:- Explore the project architecture to understand the codebase structure
- Review the contribution guidelines before making changes
- Check out the open issues on GitHub to find something to work on