Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
generator-typescript-express
Advanced tools
Readme
Typescript and Express generator with best practices and lean depenencies
This generator is used for writing Express apps with Typescript.
After using Express/Node/AngularJS/MongoDB for 2 years, What I have noticed with large JS based projects, is that it slowly becomes un-maintainable due to the lack of tooling with JS. Auto-complete, compile time checks, and strong typing are tools we take for granted, and is really a nessesity for large scale applications. Without those aforementioned tools, large projects would slowly turn into this "read-only" state where you are too afraid to change or refactor code because you wouldn't know what the consequences are!
So I built this with a series of other generators to tackle this problem, with the help of Typescript.
First, install Yeoman and generator-typescript-express using npm (we assume you have pre-installed node.js).
npm install -g yo
npm install -g generator-typescript-express
Make sure you have typescript
and tsd
(for typescript definitions) installed
npm install -g typescript
npm install -g tsd
Then generate your new project:
yo typescript-express
Afterwards, the project will run npm install
, but you would need to run tsd install
on your project root:
tsd install
After the project is scaffolded, you must build the project. You can use VSCode, Atom with atom-typescript
, or go hardcore with the tsc
command. This will create a /build
folder with the built .js
filtes.
Run gulp serve
on the root, where the gulpfile.js
is located to run the project locally to serve a local server on port 9000:
gulp serve
Get PostMan or equivalent, and send a GET request to:
http://localhost:9000/thing/
Which will get you a nice response back.
Yeoman has a heart of gold. He's a person with feelings and opinions, but he's very easy to work with. If you think he's too opinionated, he can be easily convinced. Feel free to learn more about him.
MIT © Dolan Miu
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
FAQs
Typescript and Express generator with best practices and lean depenencies
The npm package generator-typescript-express receives a total of 1 weekly downloads. As such, generator-typescript-express popularity was classified as not popular.
We found that generator-typescript-express 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.