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.
fulton-server
Advanced tools
Readme
Fulton Server is integrated many essential features and packages that a functional web server needs. Using Fulton Sever can accelerate a lot of time from building a state of art web server from scratch.
Using Fulton Server with Fulton CLI can helps you get started with Fulton.
we encourage you use Fulton Server with typescript because typescript provide better experiences than pure javascript. Also, Fulton Server takes the advantage of decoration of typescript.
For Example,
@router("/my")
class MyRouter extends Router {
@httpGet()
hi(req, res){
res.send("Hi there")
}
}
here @router
and @httpGet
are the decorators. As you can see, it make your code more meaningful.
Fulton Server is based on express. express is a very lite and the most popular web framework for nodejs. And we use the feature of decoration of typescript to build Router. See Router for more information.
Dependency Injection(DI) and inversion of control(IoC) are a good developing pattern. And inversify is a very mature package, so we includes it into Fulton Server. See DI for more information.
Authentication is a basic feature of a web server. Fulton Server providers this feature definitely. Authentication is somehow complicated, so Fulton Server integrates passport, a useful authentication package, to help your web server authenticate users. See Identity for more information.
Fulton Server takes the advantages of typeorm to connect multiple database engine. See Entity for more information.
Fulton Server can generate swagger.json that might help export your web server to other service. Also, Fulton Server embedded the swagger ui, so developments can see the api docs with look at code. See docs for more information.
Fulton Server uses winston for its loggers. See logging for more information.
Fulton Server fully supports jsonapi.
We want Fulton can be easy to configure, so we put almost every configurable settings in options variable. For example,
export class ExampleApp extends FultonApp {
protected async onInit(options: FultonAppOptions): Promise<any> {
options.routers = [
FoodRouter,
IngredientRouter
];
options.entities = [Food, Ingredient]
options.cors.enabled = true;
options.docs.enabled = true;
options.identity.enabled = true;
options.identity.google.enabled = true;
}
}
Fulton Server has js-docs for almost all of public classes, functions and members on its typescript declaration files. Therefore, typescript supported IDEs such as Visual Studio Code can give you Auto-Complete with documents that can improve the coding experiences as this picture.
As you can see, the features of Fulton Server can be very easy to change. See Options for more information.
There are some known issues, see the notes to avoid the issues.
Because typescript isn't really a programming language. The ts code will compiled to javascript. And javascript doesn't have interface and generic type and a lot features which only exists on typescript for helping coding experience. After compiling, they are all gone. For example,
// typescript
interface MyInterface{
p1: string;
p2: string;
}
class MyClass <T extends MyInterface> {
p1: T;
p2: T;
}
// the javascript that complied from typescript
class MyClass {
}
// all others staff are gone.
zone.js has a problem for es2017. use es2016 for now.
FAQs
Fulton is the best practical way to build web apis or websites we have done in our company. Basically, Fulton is integrated many popular libraries or frameworks seamlessly. By use Fulton, developers can build a completed web api or a websites quickly.
The npm package fulton-server receives a total of 1 weekly downloads. As such, fulton-server popularity was classified as not popular.
We found that fulton-server demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers 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.