VigneshDevHub / CampX

"CampX: Discover and share the best campgrounds across Globe, where adventure meets community."
https://campx-1.onrender.com/
MIT License
39 stars 69 forks source link

[BUG]Missing Start Script , #16

Closed adilkadivala closed 1 month ago

adilkadivala commented 1 month ago

Description Every project have a start script, but unfortunally we haven't it,

To Reproduce Steps to reproduce the behavior:

  1. Go to 'package.json'
  2. in Scripts 'write start and give it access of root file of project'

Expected behavior in log should be print 'Serving on port 3000'

Screenshots of current facing error project setup

Aditya-NV-06 commented 1 month ago

This can be solved by running npm install in the project after cloning the repo.After that run the npm start command in the terminal.This should be in the root folder of the project

Vignesh025 commented 1 month ago

Hi @Aditya-NV-06 ,

Thank you for your suggestion. However, I believe there might be an issue with running npm start as it will typically look for a "start" script in the package.json or default to a server.js file. Since our project uses app.js, the npm start command may not work as expected. Instead, we would need to run node app.js to properly start the application.

I appreciate your input and thoughtfulness in addressing the setup process.