Prerequisites
Before installing DevJobs, ensure you have the following installed on your system:Node.js
Version 16.x or higher required
Package Manager
npm, yarn, or pnpm
Git
For cloning the repository
Code Editor
VS Code, WebStorm, or your preferred editor
Verify Prerequisites
Check your Node.js and npm versions:Installation Methods
- npm
- yarn
- pnpm
Using npm
Install Dependencies
Install all required packages:This will install:
- React 19.2.0
- React Router DOM 7.9.6
- Snarkdown 2.0.0
- Vite 7.2.2
- And all dev dependencies
Project Structure
After installation, your project structure will look like this:Available Scripts
DevJobs comes with several npm scripts defined inpackage.json:
Configuration Files
Vite Configuration
Thevite.config.js includes:
- React Fast Refresh with SWC
- Path alias (
@→src/) for cleaner imports
ESLint Configuration
The project uses a flat ESLint configuration with:- React recommended rules
- React Hooks rules
- React Refresh rules
JavaScript Configuration
Thejsconfig.json provides IDE support for the @ path alias:
Verifying Installation
After installation, verify everything works correctly:Check Development Server
Visit
http://localhost:5173 in your browser. You should see the DevJobs homepage with a search form.Test Navigation
Click on the search button to navigate to the search results page. Filtering and pagination should work.
Check Hot Reload
Make a small change to any component file (e.g., change text in
src/pages/Home.jsx). The browser should automatically reload with your changes.Troubleshooting
Port 5173 is already in use
Port 5173 is already in use
If port 5173 is occupied, Vite will automatically try the next available port (5174, 5175, etc.). Check the terminal output for the actual URL.To use a specific port:
Module not found errors
Module not found errors
If you see module resolution errors:
- Delete
node_modulesandpackage-lock.json:
- Clear npm cache:
- Reinstall dependencies:
EACCES permission errors
EACCES permission errors
If you encounter permission errors during npm install:Don’t use sudo! Instead, configure npm to use a different directory:Add to your
.bashrc or .zshrc:Vite not starting
Vite not starting
If Vite fails to start:
- Check Node.js version (must be 16+)
- Clear Vite cache:
- Restart the dev server
React Fast Refresh not working
React Fast Refresh not working
If hot module replacement isn’t working:
- Ensure your component files export components (not just render functions)
- Check that file names match component names
- Restart the dev server
Next Steps
Quick Start Guide
Follow our quick start guide to understand the application flow
Architecture Overview
Learn about the application architecture and design patterns
Component Library
Explore available components and how to use them
Contributing
Learn how to contribute to the project
IDE Setup Recommendations
VS Code Extensions
For the best development experience with VS Code, install:- ES7+ React/Redux/React-Native snippets: Code snippets for React
- ESLint: Real-time linting feedback
- Prettier: Code formatting
- Auto Rename Tag: Automatically rename paired HTML/JSX tags
- Path Intellisense: Autocomplete for file paths
VS Code Settings
Add to your.vscode/settings.json:
Production Build
To create a production-ready build:Build the Application
dist/ directory with:- Minified JavaScript and CSS
- Code splitting for better loading performance
- Optimized assets
The production build is optimized for performance with tree-shaking, minification, and code splitting. Always test the production build before deploying.