Skip to content

Commit

Permalink
Merge pull request #92 from bhaskarblur/main
Browse files Browse the repository at this point in the history
  • Loading branch information
Karamraj authored Oct 4, 2023
2 parents 7b08a67 + 44838c4 commit 2381090
Show file tree
Hide file tree
Showing 8 changed files with 1,725 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
bookTown-Nodejs/node_modules/
bookTown-Nodejs/.env
.DS_Store
2 changes: 2 additions & 0 deletions bookTown-Nodejs/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules/
.env
72 changes: 72 additions & 0 deletions bookTown-Nodejs/DOCUMENTATION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
# BookTown Backend Application

Hello everyone reading this, this is the backend app of BookTown Developed on Node js & Express js.
The app uses Mongodb as it's primary database.

## Guidelines to contribute

This project welcomes contributors to contribute to the project & innovate new solutions to improve this project,
we appreciate your efforts in contributing to this project and we expect all the contributors to follow the guidelines
to contribute to this project.

1. Clean & Readable Code : We expect the contributors to write clean and efficient code that will not affect the current
codebase as well as keep the performance at best. Please keep in mind to keep write code that is easy to test & refract.
Please remove the unused objects from the code and use good naming conventions, also keep comments as less as possible.

2. Follow a proper project structure: The project maintains the separation of concerns by keep the files in their own purpose.
We separate Controller, Routes, Database layer & other classes from each other for better codebase management & easy changes.
Please follow this project structure to contribute to this project effectively.

3. Use environment variables(dotenv) for any sensitive configurations.


## Setup Resources

You would need to setup your own MongoDb Database in order to do operations with database as well as setup your environment variables
via dotenv file or other environment mechanism.

## API collection

The API collection of this project can be found on Postman from the link below. Sample responses have been setup for each api
so that contributors can test the API before impelementing them.

Postman Link: (To be added)
## How to Contribute

1. Fork the repository to your GitHub account.
2. Clone your forked repository to your local machine:

```bash
git clone https://github.com/YourUsername/BookTown.git
```

3. Create a new branch for your feature or bug fix:

```bash
git checkout -b feature/my-new-feature
```

4. Setup Node js Environment & Modules

5. Run the app with:

```bash
npm run build
```
6. Push your changes to your fork on GitHub:

```bash
git push origin feature/my-new-feature
```

7. Open a pull request in this repository. Be sure to provide **a clear title and description** of your changes.

8. Your pull request will be reviewed and merged once approved.

## Getting Help

If you need help or have questions, please [create an issue](https://github.com/Karamraj/BookTown/issues) in this repository.

## Thank You

Thank you for your contributions. Your help is greatly appreciated!
6 changes: 6 additions & 0 deletions bookTown-Nodejs/nodemon.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"watch" : ["src"],
"ext": ".ts, .js",
"exec": "ts-node ./src/index.ts"

}
Loading

0 comments on commit 2381090

Please sign in to comment.