Development Club of IIIT Pune
- 1. Prerequisites
- 2. Getting Started
- 3. Project Structure
- 4. Development Workflow
- 5. How to Contribute
- 6. Coding Guidelines
- 7. Common Issues
- 8. Contact
Before contributing, ensure you have the following installed:
- Node.js (>= 14.x) and npm (or yarn)
- Git for version control
- A text editor (e.g., VS Code)
Follow these steps to set up the project locally:
-
Fork and Clone the repository:
git clone https://github.com/your-username/your-repo.git cd your-repo
-
Install Dependencies Run the following command to install all required packages:
npm install # or use yarn yarn install
-
Start the Development Server To start the local development server:
npm run dev # or yarn dev
-
Access the Website Open your browser and visit:
http://localhost:3000
/public
└── font/ (Custom fonts)
└── images/ (Static images)
/app (Next.js pages or routes)
├── components/ (Reusable components)
├── globals.css/ (Tailwind and global styles)
└── api/ (backend code)
tailwind.config.ts (Tailwind configuration)
-
Issue :Create new issue or work on an existing one
-
Branching: Create a new branch for your feature or bugfix.
git switch -c add/your-feature-name # check for current working branch git branch # this should so all your branch along with current branch
-
Develop: Make your changes using the project’s coding style.
-
Commit Changes: Write clear and concise commit messages.
git add . git commit -m "Add feature: description of the feature"
-
Push to Github
git push origin feature/your-feature-name
-
Create a Pull Request (PR):
Go to the repository on GitHub. Click New Pull Request and submit your changes.
There are many ways to contribute:
- Bug Fixes: Identify and fix bugs.
- New Features: Add new features and functionality.
- Documentation: Improve or add new documentation.
- UI Enhancements: Enhance UI components.
-
Use Tailwind CSS for styling.
-
Follow the Next.js project structure and best practices.
-
Write clear and reusable components.
-
Follow JavaScript/TypeScript conventions.
Example:
export default function ExampleComponent() { return ( <div className="bg-greenblue p-4 text-white"> <h1 className="font-minecraft">Welcome to the Project!</h1> </div> ); }
- Missing Dependencies: If you see errors related to missing modules, run:
npm install
- Port Already in Use: If port 3000 is in use, change it:
npm run dev -- -p 3001
For any questions or support, feel free to reach out:
- Discord: https://discord.gg/8wEquGh4CY
- GitHub Issues: https://github.com/ShubhamAsati-123/localhost-website/issues