Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ansaribrahim/bookusnow-backend
BookusNow Backend: Node.js server for fetching events, enabling user authentication & powering the BookusNow website. Built with Express.js.
https://github.com/ansaribrahim/bookusnow-backend
bcrypt express-js jwt-authentication mongodb mongoose nodejs
Last synced: about 1 month ago
JSON representation
BookusNow Backend: Node.js server for fetching events, enabling user authentication & powering the BookusNow website. Built with Express.js.
- Host: GitHub
- URL: https://github.com/ansaribrahim/bookusnow-backend
- Owner: AnsarIbrahim
- License: mit
- Created: 2024-04-29T06:56:46.000Z (9 months ago)
- Default Branch: development
- Last Pushed: 2024-05-03T15:00:51.000Z (9 months ago)
- Last Synced: 2024-10-28T13:41:49.183Z (3 months ago)
- Topics: bcrypt, express-js, jwt-authentication, mongodb, mongoose, nodejs
- Language: JavaScript
- Homepage: https://bookusnow-db016831f8aa.herokuapp.com/
- Size: 4.33 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
BookusNow
# 📗 Table of Contents
- [📗 Table of Contents](#-table-of-contents)
- [👨💻 Fix Mate ](#-fix-mate-)
- [🛠 Built With ](#-built-with-)
- [Tech Stack ](#tech-stack-)
- [Key Features ](#key-features-)
- [💻 Getting Started ](#-getting-started-)
- [Prerequisites](#prerequisites)
- [Setup](#setup)
- [Installation](#installation)
- [Database Setup](#database-setup)
- [Running the App](#running-the-app)
- [👥 Authors ](#-authors-)
- [🔭 Future Features ](#-future-features-)
- [🤝 Contributing ](#-contributing-)
- [💖 Show your support ](#-show-your-support-)
- [🙏 Acknowledgments ](#-acknowledgments-)
- [📝 License ](#-license-)**BookusNow** is a backend system built using Node.js, Express, MongoDB, and Mongoose. It serves as the backbone for a booking application, providing essential functionalities such as user authentication, file uploading, location services, and weather updates.
## API
> - [Base Url](https://bookusnow-db016831f8aa.herokuapp.com/)
> - API Endpoints
- api/v1/events/
- api/v1/users/
- api/v1/users/admins
> - [API Documentation](https://documenter.getpostman.com/view/27096897/2sA3JDhRAn#intro)## Link to Front End
> - [Live Link](https://bookusnowapp.netlify.app/)
> - [Link to Front-end Repository](https://github.com/AnsarIbrahim/bookusnow-frontend)
## Entity Relationship Diagram
![BookUsNow_erd_digram](./uploads/images/BookusNow-Diagram.png)
Server
Database
The key features of this project include.
- **Get all Events**
- **Get One Event**
- **User CreateEvent**
- **Delete Event by Admin**
- **Get all Users**
- **Get All Admins**
> - Follow these steps to get a local copy up and running.
### Prerequisites
Before you begin, make sure you have the following installed on your machine:
- [x] Node.js: You can download Node.js [here](https://nodejs.org/en/download/).
- [x] npm (comes with Node.js): You can check if npm is installed by running the command `npm -v` in your terminal.
- [x] MongoDB: You can install MongoDB [here](https://www.mongodb.com/try/download/community).
- [x] A code editor (like VSCode, Sublime, Atom, etc.): You can download VSCode [here](https://code.visualstudio.com/download), Sublime [here](https://www.sublimetext.com/3), and Atom [here](https://atom.io/).
- [x] Git: You can download Git [here](https://git-scm.com/downloads).
> - Version Requirements:
```markdown
node >= 14.0.0
npm >= 6.14.0
mongodb >= 4.4
```
### Setup
> - To setup this project locally:
1. Open terminal in VScode.
2. Navigate to the directory where you want clone the copy of this repository.
3. Create new directory [optional].
4. Clone the repository by running the following command:
```sh
git clone [email protected]:AnsarIbrahim/bookusnow-backend.git
```
5. Navigate into the cloned repository:
```sh
cd bookusnow-backend
```
### Installation
1. Install the required dependencies by running the following command:
```sh
npm install
```
### Database Setup
> - To start the MongoDB service, run the following command:
```sh
mongod
```
> - To seed the database with sample data, you'll need to create a seed script. Once you have that, you can run it with the following command:
```sh
node seed.js
```
Please note that the command to start the MongoDB service might vary depending on your operating system and MongoDB installation. The seed script should be created in your project and should contain the logic to populate your database with sample data.
### Running the App
> - To run the application, run the following command:
```sh
npm start
```
> - This will start the Rails development server and you can access the application by visiting http://localhost:5000 in your web browser.
👤 **Ansar Ibrahim**
> - [GitHub](https://github.com/AnsarIbrahim)
> - [LinkedIn](https://linkedin.com/in/ansar-ibrahim/)
> - [Twitter](https://twitter.com/ansaradheeb)
- [ ] **Add Booking**
- [ ] **Add Stripe**
> - Contributions, issues, and feature requests are welcome!
> - Feel free to check the [issues page](../../issues/).
> - Give a ⭐️, if you like this project!
> - I would like to thank [NovaNectar Services Pvt. Ltd.](https://www.novanectar.co.in/)
This project is [MIT](./LICENSE) licensed.