# bridges

> application generator for the bridges application framework

Latest version **0.7.0** (published 2015-05-14) · ISC license · 0 weekly downloads

## Install

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

Provides the command `bridges`.

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.7.0 |
| Published | 2015-05-14 |
| First published | 2014-12-11 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Steven Zeiler |
| Maintainers | stevenzeiler |

## Links

- npm: https://www.npmjs.com/package/bridges
- npm.io page: https://npm.io/package/bridges

## Dependencies (5)

- [babel](https://npm.io/package/babel.md) ^5.1.10
- [express](https://npm.io/package/express.md) ^4.10.6
- [commander](https://npm.io/package/commander.md) ^2.5.0
- [body-parser](https://npm.io/package/body-parser.md) ^1.10.0
- [bridges-console](https://npm.io/package/bridges-console.md) ^1.0.0

## Recent versions

- 0.7.0 (latest) — 2015-05-14
- 0.6.1 — 2015-04-16
- 0.6.0 — 2015-04-16
- 0.5.1 — 2015-01-23
- 0.5.0 — 2015-01-22
- 0.4.5 — 2015-01-19
- 0.4.4 — 2015-01-18
- 0.4.3 — 2015-01-08
- 0.4.2 — 2015-01-08
- 0.4.1 — 2015-01-08
- 0.4.0 — 2015-01-08
- 0.3.1 — 2014-12-14
- 0.3.0 — 2014-12-14
- 0.2.0 — 2014-12-12
- 0.1.1 — 2014-12-12
- … 2 more at https://npm.io/package/bridges/versions

## README

# Bridges

Opinionated Node.js Database-Driven Web Application Framework

## Installation

    npm install -g bridges

### Build From Source

    git clone https://github.com/stevenzeiler/bridges
    cd bridges
    npm run build

## Usage

This software is currently in early alpha mode, be aware.

### Generate a new Bridges application:

    bridges new my_bitcoin_web_app

A Bridges application maintains a fixed directory structure
that follows naming conventions for auto-loading of classes 
into the console and server applications.

### Generate a database model class

A Model connects the Brides application with its database,
serving as an ORM. Models are created in and can be manually
added to the app/models directory

    bridges generate model payment
    bridges g model

Generating a model will create a Model class, a database
migration file to create the model name database table,
and a mocha test file to test the model:
    
Output: 

    created app/models/payment.js
    created db/migrations/1418345423292-create-payments.js
    created test/models/payment_test.js

### Database Schema Migrations

Edit the db migration file to create payments to include
several columns in the table schema, and then run db- migrate

    bridges db-migrate

The above migration 1418345423292-create-payments.js 
when run will create a database table named payments.

### Use the interactive Console:

Use the interactive Console:

    cd my_bitcoin_web_app
    bridges console

    bridges> Payment

Bridges automatically loads classes from your application
making them availabe in the console.

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