Restaurantbackend
HOMEGITHUBYouTubeCONTACT
  • RESTAURANT BACKEND
  • NodeJS V/S firebase
  • Project Requirement
  • FIREBASE
    • What is Firebase?
    • Node js v/s firebase
    • Firebase Zip File Structure
    • Video installation Guide
    • Firebase System Requirement
    • How to Run
    • Cloud Config
    • Firebase Config
    • Firebase Deployment
    • Push Notification for Firebase
  • NODEJS
    • Introduction to NodeJS
    • NodeJS Zip File Structure
    • NodeJS System Requirement
    • How to Run NodeJS
    • Project Structure
    • API Config
    • Push Notification for NodeJS
  • Deployment
    • Heroku NodeJS Api
  • CHANGELOG
    • Changelog
  • SOURCE AND CREDITS
    • Source and Credits
  • User Manual -CMS
    • Home
    • Categories
    • Menu Items
    • Orders
    • Table Booking History
    • Coupons
    • Settings
  • Untitled
Powered by GitBook
On this page
  1. NODEJS

How to Run NodeJS

It gives detailed information regarding various commands used to run the NodeJs.

How to run Node JS API :

Open the Terminal and navigate to the project folder ( API directory ) and install NodeJS dependencies :

$ npm install

Once both dependencies are installed successfully you can run the app in browser window with :

$ nodemon
  • Once the nodeJS dependencies and MongoDB connection set. It will open your web browser window and if didn't open localhost:8000 and you can see swagger api like the demo.

  • Common Error : You may receive node-gyp error once you are run this app. This issue mostly comes on windows machine. You may need visual studio on window machine to fix this issue.

How to run Dashboard :

Run in Web browser

Open your terminal and navigate to the project folder ( webapp ) and install NodeJS dependencies :

** $ npm install **

Once node dependencies are installed successfully you can run the app in browser window with :

** $ ng serve **

Production Build

** ng build --prod **  

Once you run it will create production build that you can deploy on any hosting that support html hosting but i suggest to use Firebase hosting as it easier to manage.

If there is any issue please google it or if you do not find any solution report us , we will look into it.

PreviousNodeJS System RequirementNextProject Structure

Last updated 5 years ago