Skip to content

Commit

Permalink
Merge branch 'main' into contribution87#
Browse files Browse the repository at this point in the history
  • Loading branch information
GOURAVSINGH19 authored May 13, 2024
2 parents 36889f2 + a5044a9 commit 8264c98
Show file tree
Hide file tree
Showing 31 changed files with 12,820 additions and 742 deletions.
37 changes: 37 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
// eslint-disable-next-line no-undef
module.exports = {
settings: {
react: {
version: "detect",
},
},
extends: ['eslint:recommended', 'plugin:react/recommended'],
parser: '@babel/eslint-parser',
parserOptions: {
requireConfigFile: false,
ecmaVersion: 2020,
sourceType: 'module',
ecmaFeatures: {
jsx: true,
},
babelOptions: {
presets: ["@babel/preset-react"]
},
},
plugins: ['react'],
env: {
es6: true,
browser: true,
},
rules: {
'no-console': 0, // Disable console error
'no-undef': 0, // Disable no-undef error
'react-hooks/exhaustive-deps': 0,
'no-unused-vars': 0,
'react/jsx-key':0,
'no-useless-escape' :0,
'react/prop-types':0,
'react/no-unescaped-entities':0,
'react/no-unknown-property':0,
}
}
16 changes: 16 additions & 0 deletions .github/workflows/greetings.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Greetings

on: [pull_request_target, issues]

jobs:
greeting:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- uses: actions/first-interaction@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
issue-message: "Hi there! Thanks for opening this issue. We appreciate your contribution to this open-source project. We aim to respond or assign your issue as soon as possible."
pr-message: "Welcome to Our repository.🎊 Thank you so much for taking the time to point this out."
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ node_modules/
.env
build
BOSS
.eslintcache
78 changes: 78 additions & 0 deletions Learn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
# Learn.md - Local Project Build Guide

## Introduction
Welcome to our project! Our project is an ONDC (Open Network for Digital Commerce) site integrated with OpenStreetMap, designed to provide a seamless digital commerce experience for businesses and consumers across Bharat. By leveraging ONDC APIs for data exchange and integrating with OpenStreetMap for location-based services, our platform aims to revolutionize digital commerce accessibility and efficiency.

## Prerequisites
Before you proceed with building the project locally, ensure you have the following prerequisites installed on your machine:
- **Git**: Version control system for cloning the project repository.
- **Node.js and npm (Node Package Manager)**: JavaScript runtime environment and package manager for installing project dependencies.
- **Node version**: Currently used node version v20.11.1

## Step-by-step Guide
1. **Clone the Repository:**
- Open your terminal or command prompt.
- Clone the project repository to your local machine using the following command:
```
git clone <repository_link>
```

2. **Navigate to the Project Directory:**
- Change your current directory to the cloned project directory:
```
cd <e-commerce_website>
```

3. **Install Dependencies:**
- Once inside the project directory, install the required dependencies by executing:
```
npm install
```

4. **Build the Application:**
- After installing dependencies, build the application to prepare it for deployment:
```
npm run build
```
- This command compiles and bundles the frontend assets and prepares the project for deployment.

5. **Start the Development Server:**
- Once the build process is complete, start the development server with the following command:
```
npm start
```
- This command launches a local server to host the application.

6. **Access the Application:**
- After the server starts successfully, access the application by opening a web browser and navigating to the provided URL.
- Explore the various digital commerce services and features offered by the platform.
- Utilize the integrated OpenStreetMap for location-based services to enhance your user experience.

## Creating a Pull Request
To contribute to the project, follow these steps to create a pull request:
1. **Create a Branch:**
- Before making any changes, create a new branch with a name related to the issue you're addressing. Ensure the branch name follows the convention: `feature/issue-description-#issue_number`.

2. **Make Changes:**
- Implement your changes or fixes in the newly created branch.

3. **Commit Changes:**
- Commit your changes to the branch with descriptive commit messages.

4. **Push Changes:**
- Push your changes to the remote repository using:
```
git push origin branch-name
```

5. **Create Pull Request:**
- Visit the repository on GitHub and navigate to the "Pull Requests" tab.
- Click on "New Pull Request" and select your branch as the compare branch.
- Provide a descriptive title and summary of your changes in the pull request description.
- Submit the pull request for review.

## Conclusion
Congratulations! You have successfully built and started the project locally on your machine. We appreciate your interest and effort in exploring our project. Should you have any questions or encounter any issues during the build process, feel free to reach out to our team for assistance.

Thank you for your participation, and we encourage you to continue exploring and contributing to our project!

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Our project is an ONDC (Open Network for Digital Commerce) site integrated with
- Secure backend architecture for data management

## Technologies Used
- Frontend: HTML, CSS, JavaScript, React.js
- Frontend: HTML, CSS, JavaScript, React.js, Redux
- Backend: Node.js, Express.js, Firebase Realtime Database
- Mapping: OpenStreetMap API
- Version Control: Git, GitHub
Expand Down
Loading

0 comments on commit 8264c98

Please sign in to comment.