bruno/docs/development.md

41 lines
931 B
Markdown
Raw Normal View History

2021-12-03 19:46:54 +01:00
## development
2023-01-21 22:08:59 +01:00
Bruno is deing developed as a desktop app. You need to load the app by running the nextjs app in one terminal and then run the electron app in another terminal.
### Dependencies
* NodeJS v18
2023-02-15 21:28:11 +01:00
### Local Development
2023-01-21 22:08:59 +01:00
```bash
2023-01-21 22:08:59 +01:00
# use nodejs 18 version
nvm use
# install deps
2023-02-15 21:26:38 +01:00
npm i --legacy-peer-deps
# build graphql docs
npm run build:graphql-docs
2023-02-15 21:28:11 +01:00
# run next app (terminal 1)
npm run dev --workspace=packages/bruno-app
2023-02-15 21:28:11 +01:00
# run electron app (terminal 2)
npm run dev --workspace=packages/bruno-electron
```
2023-02-15 21:28:11 +01:00
### troubleshooting
You might encounter a `Unsupported platform` error when you run `npm install`. To fix this, you will need to delete `node_modules` and `package-lock.json` and run `npm install`. This should install all the necessary packages needed to run the app.
2023-01-21 22:08:59 +01:00
### testing
```bash
# bruno-schema
npm test --workspace=packages/bruno-schema
2023-01-21 22:08:59 +01:00
# bruno-lang
npm test --workspace=packages/bruno-schema
```