Skip to content

Commit

Permalink
Merge pull request #37 from dhananjaysingh10/dhananjaysingh10
Browse files Browse the repository at this point in the history
Added section to setup project and run it on local machine in readme.md check for errors.
  • Loading branch information
Sahil1786 committed May 12, 2024
2 parents 884a219 + 0305991 commit 90c1fd6
Showing 1 changed file with 31 additions and 6 deletions.
37 changes: 31 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,35 +54,60 @@ If you're new to contributing to open-source projects, don't worry! Here's how y
```
cd Petari
```

4. **Create a new branch**: To create a new branch for your profile, run the following command:

```
git checkout -b add-profile
```

5. **Make Changes**: Make your desired changes to the codebase or documentation.
5. **Setting up Project**: Once you are in the Project directory, run this command to install all necessary npm modules

```
npm install
```

6. **Setting up dotenv file**: In the Project directory, create a file named ".env". Now add the following data to it

```
PORT=3000
ACCESS_TOKEN_SECRET = youraccesstokensecret
MAIL_ID = yourmailid
PASS_ID = yourpassword
```

7. **Database**: If MongoDB is not installed on your local machine, install it. Once you run the project, databases and collections will be automatically created.

8. **Running The Project On Local Machine**: To render the website, go to

```
http://localhost:3000 or http://localhost:${PORT_MENTIONED_IN_DOTENV}
```

9. **Make Changes**: Make your desired changes to the codebase or documentation.

6. **Test Your Changes**: Test your changes locally to ensure everything works as expected.
10. **Test Your Changes**: Test your changes locally to ensure everything works as expected.

7. **Add your changed files**: Add changed files to the stage by running the following command:
11. **Add your changed files**: Add changed files to the stage by running the following command:

```
git add .
```

8. **Commit Your Changes**: Commit your changes with descriptive commit messages.
12. **Commit Your Changes**: Commit your changes with descriptive commit messages.

```
git commit -m "message"
```

9. **Push Changes**: Push your changes to your forked repository.
13. **Push Changes**: Push your changes to your forked repository.

```
git push
```

10. **Create a Pull Request**: Open a pull request from your forked repository to the main PETARI repository. Provide a clear description of your changes in the pull request. Follow these steps
14. **Create a Pull Request**: Open a pull request from your forked repository to the main PETARI repository. Provide a clear description of your changes in the pull request. Follow these steps
- Add the issue number, that you have been assigned[Formate:- Isuue number #(your issue number)]
- Brief description of the changes

Expand Down

0 comments on commit 90c1fd6

Please sign in to comment.