Thank you for your interest in contributing to urBackend! We welcome contributions to help make this "Backend-as-a-Service" platform even better.
Please take a moment to review this document in order to make the contribution process easy and effective for everyone involved.
Fork the repository to your GitHub account and then clone it locally:
git clone https://github.com/YOUR_USERNAME/urBackend.git
cd urBackendThe repository is organized into two main directories:
backend/: Node.js & Express application handling the API, database, and authentication.frontend/: React.js (Vite) application for the user dashboard.
- Navigate to the backend directory:
cd backend - Install dependencies:
npm install - Create a
.envfile (refer toREADME.mdfor required variables). - Start the server:
npm start
- Navigate to the frontend directory:
cd frontend - Install dependencies:
npm install - Start the development server:
npm run dev
-
Create a Branch: Always create a new branch for your work. Use descriptive names like
feature/new-login-uiorfix/database-connection.git checkout -b feature/your-feature-name
-
Make Changes: Implement your feature or fix.
-
Test Your Changes:
- Backend: Run tests using Jest.
cd backend npm test
- Frontend: Ensure there are no linting errors.
cd frontend npm run lint
- Backend: Run tests using Jest.
-
Commit: Use clear and concise commit messages.
git commit -m "Add feature X" -
Push: Push your branch to your forked repository.
git push origin feature/your-feature-name
- Go to the original repository and click "Compare & pull request".
- Provide a clear title and description of your changes.
- Link any related issues (e.g., "Fixes #123").
- Wait for review and address any feedback.
- Bugs: If you find a bug, please create an issue describing the problem, steps to reproduce, and expected behavior.
- Features: If you have an idea for a new feature, feel free to open an issue to discuss it before starting implementation.
Please be respectful and considerate of others. We aim to create a welcoming and inclusive environment for all contributors.
Happy Coding! 🚀