New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

generator-genproject2

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

generator-genproject2

teenie weenie generator for some front-end scaffolding with the simplest possible server.

  • 0.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-60%
Maintainers
1
Weekly downloads
 
Created
Source

#GenProject 2!

What we have here is some basic scaffolding for a simple front-end app (an index.html that links to a style.css file and a script.js file). You may have done something like this before with a shell script that you wrote yourself.

There is now also a file called server.js. If you run that file with node server.js, you will run a very simple HTTP server from the current directory. Requests to http://localhost:3000 will arrive at this server, which will respond by sending up the index.html or any other requested file.

So all you need to do is:

  • run node server.js.
  • open a new tab in the terminal with cmd+t (you need to leave the server running in the original tab).
  • open the project in sublime, and edit your html, css and js files as normal.
  • every time you want to check out your changes, just refresh http://localhost:3000 in your browser.

Note that you cannot run two of these servers at the same time. If you try to do that, you might get an error that looks like Error: listen EADDRINUSE :::3000. Just cancel one of them by entering ctrl+c in that tab, then try again.

Keywords

FAQs

Package last updated on 23 Feb 2017

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