2019-10-12 09:02:56 +02:00
|
|
|
Getting Started with Budibase
|
|
|
|
|
|
|
|
### 1. Prerequisites (for nodegyp)
|
|
|
|
|
|
|
|
We will try to make this bit easier, but for now:
|
|
|
|
|
|
|
|
- Windows - https://github.com/nodejs/node-gyp#on-windows
|
|
|
|
- Ubuntu `sudo apt-get install build-essentials`
|
|
|
|
- Mac: https://github.com/nodejs/node-gyp#on-macos
|
|
|
|
|
|
|
|
### 2. Global install budibase
|
|
|
|
|
|
|
|
`npm install -g budibase`
|
|
|
|
|
|
|
|
### 3. Start using Budibase
|
|
|
|
|
|
|
|
Create a directory to store your Budibase apps
|
|
|
|
|
|
|
|
`mkdir my-budibase`
|
|
|
|
|
|
|
|
`cd my-budibase`
|
|
|
|
|
|
|
|
Initialise Budibase in current directory
|
|
|
|
|
|
|
|
`budi init`
|
|
|
|
|
|
|
|
Create a new Budibase app
|
|
|
|
|
|
|
|
`budi new my-app`
|
|
|
|
|
|
|
|
Run Budibase
|
|
|
|
|
|
|
|
`budi`
|
|
|
|
|
|
|
|
You can now access the Budibase builder on http://localhost:4001/_builder
|
|
|
|
|
|
|
|
Start building!
|
|
|
|
|
|
|
|
Once you have created your app, you need to create yourself an instance of your app (i.e. a database)
|
|
|
|
|
|
|
|
`budi instance my-app`
|
|
|
|
|
2019-09-10 07:01:26 +02:00
|
|
|
## Getting Started for Contributors
|
2019-09-09 22:02:23 +02:00
|
|
|
|
|
|
|
Install requires [node-gyp](https://github.com/nodejs/node-gyp), due to a dependancy on [argon2](https://github.com/ranisalt/node-argon2)
|
|
|
|
|
2019-09-10 07:01:26 +02:00
|
|
|
### 1. Prerequisites
|
2019-09-09 22:02:23 +02:00
|
|
|
|
2019-10-11 10:45:38 +02:00
|
|
|
*nodegyp -*
|
2019-10-12 09:02:56 +02:00
|
|
|
|
2019-10-11 10:45:38 +02:00
|
|
|
- Windows - https://github.com/nodejs/node-gyp#on-windows
|
|
|
|
- Ubuntu `sudo apt-get install build-essentials`
|
|
|
|
- Mac: https://github.com/nodejs/node-gyp#on-macos
|
2019-09-09 22:02:23 +02:00
|
|
|
|
2019-09-10 07:01:26 +02:00
|
|
|
*yarn -* `npm install -g yarn`
|
2019-09-09 22:02:23 +02:00
|
|
|
|
2019-09-10 07:01:26 +02:00
|
|
|
*lerna -* `npm install -g lerna`
|
2019-09-09 22:02:23 +02:00
|
|
|
|
2019-09-10 07:01:26 +02:00
|
|
|
*jest* - `npm install -g jest`
|
2019-09-09 22:02:23 +02:00
|
|
|
|
2019-09-10 11:38:13 +02:00
|
|
|
### 2. Clone this repository
|
|
|
|
|
|
|
|
`git clone git@github.com:Budibase/budibase.git`
|
|
|
|
|
|
|
|
then `cd ` into your local copy...
|
|
|
|
|
|
|
|
### 3. Install and Build
|
2019-09-09 22:02:23 +02:00
|
|
|
|
2019-09-10 11:25:13 +02:00
|
|
|
`lerna bootstrap` will install all modules
|
2019-09-10 07:01:26 +02:00
|
|
|
|
2019-09-23 01:00:48 +02:00
|
|
|
`lerna run build` will build all packages
|
2019-09-10 07:01:26 +02:00
|
|
|
|
2019-09-10 11:38:13 +02:00
|
|
|
`lerna run initialise` will initialise your budibase (i.e. create local database)
|
2019-09-09 22:02:23 +02:00
|
|
|
|
2019-09-23 01:00:48 +02:00
|
|
|
### 4. Running
|
2019-09-09 22:02:23 +02:00
|
|
|
|
2019-09-10 11:25:13 +02:00
|
|
|
`lerna run dev:builder` - will run up the builder and server together - i.e. when you want to do some work on the builder
|
2019-09-09 22:02:23 +02:00
|
|
|
|
|
|
|
## Documentation
|
|
|
|
|
2019-09-10 11:38:13 +02:00
|
|
|
A work in progress, lives here: https://docs.budibase.com
|
2019-09-09 22:02:23 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|