0.0.6 • Published 4 years ago

foobar-core v0.0.6

Weekly downloads
-
License
ISC
Repository
gitlab
Last release
4 years ago

Installation  

With node installed:

Prerequisites

# Make sure typescript is globally installed
$ npm install -g typescript ts-node
# Get the latest stable release of foobar-cli
$ npm install foobar-cli -g

Your First Foobar Project

Create a new app:

# Create a new app
$ foobar-cli new my-app

Edit your database credentials in src/config.ts :

const config = {
  client: 'mysql',
  connection: {
    host: '127.0.0.1',
    user: 'your_db_user',
    password: 'your_db_password',
    database: 'your_db_name',
  },
}
​
export default config;

You have different 'client' choices among :

  • mysql
  • pg
  • sqlite3

Note: When you use the SQLite3 adapter, there is a filename required, not a network connection. For example:

const config = {
  client: 'sqlite3',
    connection: {
      filename: "./mydb.sqlite"
    }
}
​
export default config;

Run your project:

# in the project directory
$ npm start

For help:

# Show use command example
$ foobar-cli help

Team

FoobarTeam Our core team consists of:

Guillaume HANOTELClément CLOUXLouis SAGLIOThomas MAURIN
Guillaume HANOTELClément CLOUXLouis SAGLIOThomas MAURIN