Herbs is an open source library for backend applications. It is focused on achieving faster deliveries and with happier developers, without neglecting the long-term need to constantly evolve your application as requirements change.
See more on the website: https://herbsjs.org/
Within this repository, you will find a front-end application, made in react consuming a back-end application, using Herbs, the API is made in graphQL
This is a example on how to build a backend application using Herbs.
$ npm install
$ npm run knex:migrate
$ npm start
You should receive this message => 🚀 Server UP and Running in port: 4000
VSCode launchers (launch.json) are also available.
-
Change
knexfile.js
andsrc\infra\config\dev.json
connection info. -
Run migration:
$ npx knex migrate:latest --env development
View all the use cases and its steps in just one place.
Herbs Shelf: http://localhost:4000/herbsshelf
Documentation dynamically generated by herbsshelf.
GraphQL Playground: http://localhost:4000/graphql
GraphQL dynamically generated by herbs2gql.
Express routes dynamically generated by herbs2rest.
View all the use cases your termnal.
$ node ./src/infra/repl
REPL dynamically generated by Herbs REPL.
Environment:
.env.{environment}
files.
Rename one of the files to just .env
.
Default is dev
. Also check for HERBS_EXCEPTION
env variable.
Config:
Edit /backend/infra/config/{environment}.json
files if necessary.
classDiagram
class Item {
Number id
String description
Boolean isDone
Number position
}
class ToDoList{
Number id
String name
Item[] items
isEmpty()
lastPosition()
}
ToDoList "1" --> "*" Item
If you would like to help contribute to this repository, please see CONTRIBUTING