Socket
Socket
Sign inDemoInstall

nodejs-generator

Package Overview
Dependencies
33
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    nodejs-generator

Setup NodeJS with your favorite frontend frameworks (ReactJS, VueJS) in same host, same port by running one command.


Version published
Weekly downloads
6
increased by100%
Maintainers
1
Install size
7.38 MB
Created
Weekly downloads
 

Readme

Source

NodeJS Generator

Setup NodeJS-Express project with your favorite frontend frameworks (ReactJS, VueJS) and run on same host, same port by running one command.

Getting Started

When building project, usually you may want to run your backend and frontend in one host and port, not to proxy it. If that's what you're looking for, so this tool is for you.

This project helps you setup your NodeJS app with frontend frameworks (React, VueJS) in same folder, run on same host, same port. It comes with other setups like Webpack, Babel, CSS module, SCSS, Eslint, ...

Installing

Install this package by running:

npm install -g nodejs-generator

How to use

After install this package. You're now able to create new project using command:

nodejs-generator

Choose your own project options. Then you're ready to go!

Running project

After setup new project. Follow these steps to run your project:

cd <your_project_name>
npm install
npm start       # to start your project
npm run dev     # to build your frontend

Then open your browser at port of your project (default is 3000)

Running in production

When running in production, I recommend:

  • Building your frontend in production mode by running: npm run prod or npm run production
  • Using a process manager to manage your nodejs app. Like PM2 (I love this), Forever, ...
  • You should running your app behind a reverse proxy like Nginx. Configuration your Nginx for Nodejs like this link

Built With

This tool is build on top of express-generator.

Contributing

If there's any problem, question or any upgrade I should make, just create an issue and let me know.

Authors

  • Mai Trung Duc - Creator

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

Acknowledgments

FAQs

Last updated on 29 Mar 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc