
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
generator-hackathon
Advanced tools
An Express app generator for the Hack for Equality Hackathon, Dublin, Ireland March 28th 2015 https://ti.to/hackforequality/hack-for-equality
A Yeoman generator for the Hack for Equality Hackathon, Dublin, March 28th 2015.
This generator sets up a simple dev environment with Node / Express on the backend & either React.js and/or jQuery on the front.
Modules are written in CommonJS format and bundled using Browserify, and everything comes together with Gulp.
In addition, you may optionally include the Deezer API JavaScript SDK if you want to develop music-based apps using our API (cause that's who I work for! But it isn't installed by default).
npm update -g npm@latest
(you may need to run this command in sudo
).npm install -g yo gulp
(again, you might need sudo
mode);npm install -g generator-hackathon
.Launching the generator is easy
yo hackathon
and follow the prompts.Done! You project is ready.
Sometimes yeoman can't find your generators, depending on how your environment is setup. If this happens, run the
command yo doctor
and follow the instructions.
A simple Node / Express server, with React.js and/or jQuery on the client.
Depending on how your respond to Yeoman's queries, the generator will install some or all of the following libraries.
In addition, we include the following development tools
nodemon
for quick restarting of Express whenever a server-side file is modified;gulp-notify
for desktop notifications when a parse error is encountered by Browserify.It also sets up a simple Express project structure that looks like this
bin
(entry-point to the entire app, launches the server)lib
(modules used on the server-side)
middleware
(custom middleware for Express)routes
(Express routes)src
(Client-side code)
css
img
js
tasks
(Gulp tasks)views
(Express server-side templates & layouts)app.js
(Express server)Gulpfile.js
In addition, a folder public
will be created once you launch the server. This acts as the docroot, and contains the
results of running the Gulp build. It shouldn't be directly modified.
For a client-side app, most of your time will be spent developing in the src
directory.
After you run the generator, the project will have a README.md
in its root that explains how to get going.
(Or, in a line, just run the command gulp
from your project root and go to http://localhost:3000/ in your browser).
This generator could be improved in a number of ways. I'm happy to accept PRs for all or any of these!
If you need help with any of this on the day, ask me on Twitter http://www.twitter.com/cormacflynn or via Slack.
MIT
FAQs
An Express app generator for the Hack for Equality Hackathon, Dublin, Ireland March 28th 2015 https://ti.to/hackforequality/hack-for-equality
We found that generator-hackathon demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.