Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sm-noushan/react-stay-vista-server
StayVista is a user-friendly hotel booking platform designed to offer a seamless experience for both guests and hosts by enabling users to browse, book, and manage accommodations effortlessly.
https://github.com/sm-noushan/react-stay-vista-server
cookie-parser cors dotenv expressjs jwt mongodb nodejs nodemailer stripe
Last synced: 15 days ago
JSON representation
StayVista is a user-friendly hotel booking platform designed to offer a seamless experience for both guests and hosts by enabling users to browse, book, and manage accommodations effortlessly.
- Host: GitHub
- URL: https://github.com/sm-noushan/react-stay-vista-server
- Owner: SM-Noushan
- Created: 2024-07-06T11:17:58.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-07-15T16:10:53.000Z (5 months ago)
- Last Synced: 2024-10-21T20:32:02.921Z (2 months ago)
- Topics: cookie-parser, cors, dotenv, expressjs, jwt, mongodb, nodejs, nodemailer, stripe
- Language: JavaScript
- Homepage: https://stayvista-by-sm-nowshan.vercel.app
- Size: 42 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# StayVista: Hotel Booking Platform
## Overview
This repository contains the server-side code for the StayVista application.
- [Live-Site](https://stayvista-by-sm-nowshan.vercel.app)
- [Client-Repo](https://github.com/sm-noushan/react-stay-vista-client)## Setup
### Prerequisites
Before you begin, ensure you have the following installed on your system:
- [Git](https://git-scm.com/downloads)
- [Node.js](https://nodejs.org/) (LTS version recommended)### Installation
1. **Clone the repository**:
```bash
git clone https://github.com/SM-Noushan/react-stay-vista-server
cd react-stay-vista-server
```2. **Install dependencies**:
```bash
npm install
```3. **Environment Setup**: Rename `.env.rename` to `.env` in the root directory of the project and add the necessary environment variables as well as change `MongoDB uri in index.js` with your specific configuration.. (**Important!**)
4. **Running the Server**: If you don't have nodemon installed globally, you can use npx:
```bash
npx nodemon index.js
Installing Nodemon Globally
```**Or**
If you prefer to install nodemon globally, use the following command:```bash
npm install -g nodemon
```**Then**, to run the server locally, use the following command:
```bash
nodemon index.js
```This will start the server and make your API accessible at [http://localhost:8000](http://localhost:8000) (or your specified port).
## Frontend Setup
For detailed information, refer to the [Run the Project Locally](https://github.com/SM-Noushan/react-stay-vista-client) in the front-end repository's `README.md`. (**Important!**)
Thank you!