# cocasus

> Javascript framework for web development

Latest version **1.2.9** (published 2022-09-04) · ISC license · 0 weekly downloads

## Install

```sh
npm install cocasus
pnpm add cocasus
yarn add cocasus
bun add cocasus
```

Provides the command `cocasus`.

## 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.2.9 |
| Published | 2022-09-04 |
| First published | 2022-05-19 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 28 |
| Unpacked size | 74.2 KB |
| Known vulnerabilities | 0 (+8 in 2 direct dependencies) |
| Install scripts | no |
| GitHub stars | 1 |
| Author | HUORT Louis |
| Maintainers | rharkor |
| Keywords | cocasus, framework, cli, express, sequelize, jinja, web, sass |

## Links

- npm: https://www.npmjs.com/package/cocasus
- Repository: https://github.com/rharkor/cocasus
- Homepage: https://cocasus.devision.fr
- Issues: https://github.com/rharkor/cocasus/issues
- npm.io page: https://npm.io/package/cocasus

## Dependencies (28)

- [fs](https://npm.io/package/fs.md) ^0.0.1-security
- [pg](https://npm.io/package/pg.md) ^8.7.3
- [cors](https://npm.io/package/cors.md) ^2.8.5
- [chalk](https://npm.io/package/chalk.md) ^4.1.2
- [table](https://npm.io/package/table.md) ^6.8.0
- [umzug](https://npm.io/package/umzug.md) ^3.1.1
- [yargs](https://npm.io/package/yargs.md) ^17.5.1
- [dotenv](https://npm.io/package/dotenv.md) ^16.0.1
- [mysql2](https://npm.io/package/mysql2.md) ^2.3.3
- [express](https://npm.io/package/express.md) ^4.18.1
- [i18next](https://npm.io/package/i18next.md) <=20.x.x
- [mariadb](https://npm.io/package/mariadb.md) ^3.0.0
- [nodemon](https://npm.io/package/nodemon.md) ^2.0.16
- [sqlite3](https://npm.io/package/sqlite3.md) ^5.0.8
- [tedious](https://npm.io/package/tedious.md) ^14.5.0
- [inquirer](https://npm.io/package/inquirer.md) ^8.2.4
- [nunjucks](https://npm.io/package/nunjucks.md) ^3.2.3
- [sequelize](https://npm.io/package/sequelize.md) ^6.19.2
- [cookie-parser](https://npm.io/package/cookie-parser.md) ^1.4.6
- [node-schedule](https://npm.io/package/node-schedule.md) ^2.1.0
- [express-form-data](https://npm.io/package/express-form-data.md) ^2.0.18
- [express-subdomain](https://npm.io/package/express-subdomain.md) ^1.0.5
- [express-validator](https://npm.io/package/express-validator.md) ^6.14.0
- [simple-node-logger](https://npm.io/package/simple-node-logger.md) ^21.8.12
- [node-sass-middleware](https://npm.io/package/node-sass-middleware.md) ^1.0.1
- [synchronized-promise](https://npm.io/package/synchronized-promise.md) ^0.3.1
- [i18next-node-fs-backend](https://npm.io/package/i18next-node-fs-backend.md) ^2.1.3
- [i18next-express-middleware](https://npm.io/package/i18next-express-middleware.md) ^2.0.0

## Alternatives

- [@salesforce/cli](https://npm.io/package/@salesforce/cli.md) — 389.7K weekly downloads
- [@mintlify/cli](https://npm.io/package/@mintlify/cli.md) — 208.9K weekly downloads
- [@grafana/e2e-selectors](https://npm.io/package/@grafana/e2e-selectors.md) — 128.7K weekly downloads
- [mintlify](https://npm.io/package/mintlify.md) — 112.0K weekly downloads
- [@intlayer/cli](https://npm.io/package/@intlayer/cli.md) — 22.8K weekly downloads

## Recent versions

- 1.2.9 (latest) — 2022-09-04
- 1.2.8 — 2022-06-28
- 1.2.7 — 2022-06-05
- 1.2.6 — 2022-06-04
- 1.2.5 — 2022-06-02
- 1.2.4 — 2022-06-01
- 1.2.3 — 2022-06-01
- 1.2.2 — 2022-05-30
- 1.2.1 — 2022-05-29
- 1.2.0 — 2022-05-29
- 1.1.5 — 2022-05-27
- 1.1.4 — 2022-05-27
- 1.1.3 — 2022-05-27
- 1.1.2 — 2022-05-26
- 1.1.1 — 2022-05-24
- … 7 more at https://npm.io/package/cocasus/versions

## README

# Cocasus

Cocasus is a simple, fast, and powerful web framework for Javascript.

```js
const cocasus = require('cocasus');

const coca = new cocasus();

coca.route('/', (req, res) => {
  res.send('Hello World!');
});

coca.start();
```

## Installation

This framework is available through the [npm registry](https://www.npmjs.com).

Make sure to install Node.js first.

Then create a new project with following command:

```sh
npm init
```

You can now install cocasus

```sh
npm install cocasus
```

## Initialization

Cocasus is a framework with a precise architecture.
To make sure to have a clean environment initialize the project with the following command:

```sh
# Existing project
cocasus init

# Override all files if necessary
cocasus init --force

# Initialize the project directly with npx
npx cocasus init
```

## Features

- Robust routing
- The performance of express
- The power of sequelize
- Easy to use
- Migrations
- Logging
- Models
- Controllers

## Documentation

All the detailed documentation can be found on the [Documentation](https://cocasus.devision.fr/docs)

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