1
0
Fork 0
mirror of synced 2024-07-02 04:50:44 +12:00
budibase/readme.md

103 lines
2 KiB
Markdown
Raw Normal View History

2019-10-12 20:14:56 +13:00
# Getting Started with Budibase
(For contributors - scroll down)
2019-10-12 20:02:56 +13:00
2020-01-23 23:52:42 +13:00
### 1. Global install budibase
2019-10-12 20:02:56 +13:00
`npm install -g budibase`
2020-01-23 23:52:42 +13:00
### 2. Start using Budibase
2019-10-12 20:02:56 +13:00
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 17:01:26 +12:00
## Getting Started for Contributors
2019-09-10 08:02:23 +12:00
2019-09-10 17:01:26 +12:00
### 1. Prerequisites
2019-09-10 08:02:23 +12:00
2019-09-10 17:01:26 +12:00
*yarn -* `npm install -g yarn`
2019-09-10 08:02:23 +12:00
2019-09-10 17:01:26 +12:00
*jest* - `npm install -g jest`
2019-09-10 08:02:23 +12:00
2019-09-10 21:38:13 +12:00
### 2. Clone this repository
2019-11-14 11:01:13 +13:00
`git clone https://github.com/Budibase/budibase.git`
2019-09-10 21:38:13 +12:00
then `cd ` into your local copy...
### 3. Install and Build
2019-09-10 08:02:23 +12:00
2020-01-29 22:11:33 +13:00
`yarn` to install project dependencies
2019-09-10 17:01:26 +12:00
2020-01-29 22:11:33 +13:00
`yarn bootstrap` will install all budibase modules
`yarn build` will build all budibase packages
2019-09-10 17:01:26 +12:00
2020-01-23 02:50:39 +13:00
`yarn initialise` will initialise your budibase (i.e. create local database)
2019-09-10 08:02:23 +12:00
2019-09-23 11:00:48 +12:00
### 4. Running
2019-09-10 08:02:23 +12:00
A Budibase apps folder will have been created in `packages/server/myapps`. This is a blank apps folder, so you will need to create yourself an app:
```
cd packages/server
yarn run budi new your-app-name
```
now build and publish the latest budibase libs, to your new app
2020-02-23 11:27:41 +13:00
```
2020-03-10 23:19:49 +13:00
cd ../..
# now back in the root of the repository
2020-02-23 11:27:41 +13:00
yarn run publishdev
```
then
2020-03-10 23:19:49 +13:00
run the budibase server and builder in dev mode (i.e. with hot reloading):
1. Open a new console
2020-03-10 23:19:49 +13:00
2. `yarn dev` (from root)
3. Access the builder on http://localhost:4001/_builder/
This will enable watch mode for both the client AND the server.
### Running Commands from /server Directory
Notice that when inside `packages/server`, you can use any Budibase CLI command via yarn:
e.g. `yarn budi new mikes_app` == `budi new mikes_app`
This will use the CLI directly from `packages/cli`, rather than your globally installed `budi`
2019-09-10 08:02:23 +12:00
## Documentation
2019-09-10 21:38:13 +12:00
A work in progress, lives here: https://docs.budibase.com
2019-09-10 08:02:23 +12:00