Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/squallstar/bancha.js-deprecated
Bancha.js Core
https://github.com/squallstar/bancha.js-deprecated
Last synced: about 1 month ago
JSON representation
Bancha.js Core
- Host: GitHub
- URL: https://github.com/squallstar/bancha.js-deprecated
- Owner: squallstar
- Created: 2015-05-14T10:36:31.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-05-24T17:24:45.000Z (over 9 years ago)
- Last Synced: 2024-05-02T00:19:02.804Z (7 months ago)
- Language: JavaScript
- Size: 1.27 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Bancha.js
This is a port of [Bancha CMS](https://github.com/squallstar/bancha) for **Node.js**. Currently under development, not for use yet.
# Basic usage
```
npm install bancha --save
``````javascript
var bancha = require('bancha');bancha().start(function () {
console.log('Yipee!');
});
```And then, just open your browser at [http://localhost](http://localhost) to finish the install.
## Default options
Usage: `bancha(options).start(fn)`
```javascript
bancha({host: 'localhost',
port: 80,
interface: '0.0.0.0',
database: {
// This can be any connection string supported by Sequelize
url: "sqlite://db.sqlite"
},// By default, __dirname of the bootstrap script will be used
appPath: 'path/to/dir/',// Defaults to "admin".
adminPath: 'path/to/admin/'
})
```