# create-anthrax-app

> AnthraxJS stater kit

Latest version **1.0.7** (published 2021-07-27) · ISC license · 0 weekly downloads

## Install

```sh
npm install create-anthrax-app
pnpm add create-anthrax-app
yarn add create-anthrax-app
bun add create-anthrax-app
```

Provides the command `create-anthrax-app`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.7 |
| Published | 2021-07-27 |
| First published | 2021-07-16 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Unpacked size | 10.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Jobayerdev |
| Maintainers | jobayerdev |

## Links

- npm: https://www.npmjs.com/package/create-anthrax-app
- Repository: https://github.com/Jobayerdev/Anthrax.js
- Homepage: https://github.com/Jobayerdev/Anthrax.js#readme
- Issues: https://github.com/Jobayerdev/Anthrax.js/issues
- npm.io page: https://npm.io/package/create-anthrax-app

## Dependencies (5)

- [tslib](https://npm.io/package/tslib.md) ^2.3.0
- [anthrax](https://npm.io/package/anthrax.md) ^2.1.0
- [nodemon](https://npm.io/package/nodemon.md) ^2.0.10
- [ts-node](https://npm.io/package/ts-node.md) ^10.0.0
- [typescript](https://npm.io/package/typescript.md) ^4.3.5

## Recent versions

- 1.0.7 (latest) — 2021-07-27
- 1.0.6 — 2021-07-25
- 1.0.5 — 2021-07-16
- 1.0.4 — 2021-07-16
- 1.0.3 — 2021-07-16
- 1.0.2 — 2021-07-16
- 1.0.1 — 2021-07-16

## README

<img src="https://raw.githubusercontent.com/Jobayerdev/Anthrax.js/master/docs/1.png" alt="Anthrax.JS"/>

Anthrax, or AnthraxJS, is an easy and open-source framework written using Node.js. Anthrax allows for rapid prototyping code. Motivated by ExpressJS.

## Installation

```
$ npx create-anthrax-app my-app
$ cd my-app
$ npm start
```

## Hello Anthrax

```js
import { AnthraxFactory, Methods } from "anthrax"

class AuthController {
	routes = [
		{
			path: "/login",
			method: Methods.GET,
			callBack: this.login,
		},
		{
			path: "/register",
			method: Methods.GET,
			callBack: this.register,
		},
	]

	async login(req: any, res: any) {
		return res.json(String(res))
	}
	async register(req: any, res: any) {
		return res.send("Hello Auth register")
	}
}

async function bootstrap() {
	const app: AnthraxFactory = new AnthraxFactory({
		controllers: [AuthController],
	})
	app.listen(4000, () => {
		console.log(`Server is running on port ${4000}`)
	})
}

bootstrap()
```

## Author

[Jobayer Hossain](https://twitter.com/jobayerdev)

---
_Source: https://npm.io/package/create-anthrax-app · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
