Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

nodejs-generator

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

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.

  • 1.0.33
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
8
increased by700%
Maintainers
1
Weekly downloads
 
Created
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

Package last updated on 29 Mar 2019

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc