This is a web application for hotel & resort booking.
-
Clone the repository:
-
Navigate to the project folder.
-
Make sure you have MongoDB installed and running.
-
Create a new database collection for the web app.
-
Copy the connection URL for the MongoDB database.
-
Navigate to the
serverfolder:cd server -
Create a new
.envfile in theserverfolder. -
Inside the
.envfile, add the following line with the connection URL you copied:MONGO_URL=<paste-your-connection-url-here> -
Save the
.envfile. -
Install the server dependencies:
npm install -
Start the server:
npm server.js -
Open a new terminal.
-
Navigate to the
clientfolder:cd client -
Install the client dependencies:
npm install -
Start the client:
npm start
Now, you should have the WorldXplorer up and running. The server should be running on one terminal, and the client should be running on another terminal. Access the app by opening a web browser and visiting http://localhost:3000.