/demo-books

Demo app for easily getting started with Bunnyshell

Primary LanguageTypeScript

Bunnyshell Books - Demo App

This app is a CRUD example, composed out of a frontend, one backend service and one database. Its purpose is to illustrate how you can quickly get started with Bunnyshell.

Summary of app functional requirements:

  • Each Book has id, title, description, availability status.
  • We can create, retrieve, update, delete Books.
  • There is a Search bar for searching Books by title.

Inspired from:

Summary of app functional requirements:

  • Each Book has id, title, description, availability status.
  • We can create, retrieve, update, delete Books.
  • There is a Search bar for searching Books by title.

Development

Copy the .env.sample to .env in order to have env vars for development, as the defaults are set to work with Bunnyshell, in prod mode.

Add the following line to /etc/hosts on your local machine

127.0.0.1 books.local.bunnyshell.com books-api.local.bunnyshell.com

Then, just run docker compose up and open the apps:

Projects setup & run

In each project directory, you can run:

npm install

Compiles and hot-reloads for development

npm start