This is a (partial) rebuild of the original product website for Bonsai Writer.
I developed it as an exercise for myself, as a kind of “coding kata”.
Bonsai Writer was an innovative text writing software for Linux, macOS, and Windows. It's special power was: Seperation of the strucured text from the design. This applies to the process of writing as well as to the data produced by Bonsai Writer. And in contrast to other approaches that does this, Bonsia Writer provides a rather familiar way of text writing and provides a beautiful, easy to use user interface.
We started Bonsai Writer in 2017, inside the company SALT AND PEPPER. In 2019, we had to stop further development.
Install dependencies:
npm install
Start a development server:
npm run dev
# or start the server and open the app in a new browser tab
npm run dev -- --open
There are Unit and E2E tests. To run them all with:
npm run test
To create a production version of your app:
npm run build
You can preview the production build with npm run preview
.
For deploying to Deno Deploy you need to setup an account first.
If you want to deploy from your local machine you can run npm run deno-deploy
. This will open a website in your browser for authorization. To streamline deployment you can also set the required token as an environment variable on your machine.
Ensure that you have the necessary permissions and configurations set up in GitHub or GitLab. This includes providing the access token from Deno Deploy as a variable with key DENO_DEPLOY_TOKEN
.
Pushes to any branch trigger the pipeline to lint, test and deploy. Pushes to the the main
branch are deployed to production.