Orbis is a sophisticated event management platform designed to simplify and elevate the experience of organizing, hosting, and participating in events at NITK.
-
Install Docker Desktop: Ensure Docker Desktop is installed on your machine to manage containerized applications.
-
Run Docker Compose: In the root directory, open a terminal and execute
docker-compose up -d
to start the necessary services. -
Backend Setup:
- Navigate to the backend directory in a separate terminal.
- Add a
.env
file with the required environment variables. - Run
npm run dev
to start the backend server.
-
Frontend Setup:
- Navigate to the frontend directory.
- Add a
.env
file with the necessary environment variables. - Run
npm run dev
to start the frontend server.
- Use clear and concise comments to explain the purpose of complex code blocks. For example,
// Calculate the total price including tax
. - Avoid redundant comments that state the obvious, such as
// Increment i by 1
. - Use JSDoc style comments for functions and components to describe their purpose, parameters, and return values. Example:
/** * Fetches user data from the API. * @param {string} userId - The ID of the user. * @returns {Promise<Object>} The user data. */
- Follow the Airbnb JavaScript Style Guide.
- Use 2 spaces for indentation.
- Prefer
const
andlet
overvar
. - Use arrow functions for anonymous functions, e.g.,
const add = (a, b) => a + b;
. - Ensure consistent use of single quotes for strings, like
'Hello, World!'
. - Place opening braces on the same line as the statement, e.g.,
if (true) {
. - Use trailing commas in multi-line objects and arrays, such as:
const obj = { name: 'Orbis', type: 'Platform', };
- Use camelCase for variable and function names, e.g.,
let userName
. - Use PascalCase for React components and class names, e.g.,
class UserProfile
. - Use UPPER_SNAKE_CASE for constants, e.g.,
const API_URL
. - Choose meaningful and descriptive names for variables and functions, such as
calculateTotalPrice
.
- Write clear and concise commit messages.
- Use the present tense, e.g.,
Add feature
notAdded feature
. - Capitalize the first letter of the commit message.
- Use imperative mood, e.g.,
Fix bug
notFixed bug
. - Include a brief description of the changes made.
- Reference relevant issue numbers in the commit message.
- Use prefixes like
fix:
,feat:
,frontend:
,backend:
,misc:
to categorize commits.
- Use feature branches for new features and bug fixes. For example,
feature/add-user-authentication
. - Keep the
main
branch in a deployable state. - Regularly pull changes from the
main
branch to keep your branch up to date. - Perform code reviews and seek feedback from team members.