dolphins7.skeleton/README.md

60 lines
2.1 KiB
Markdown
Raw Permalink Normal View History

2023-12-08 19:27:00 +01:00
## About
2024-09-24 20:51:58 +02:00
dolphins7 is a [webskel](https://github.com/webskel/cli) skeleton.
The **Design** section describes how it is organized.
2023-12-08 19:27:00 +01:00
2024-01-14 22:48:27 +01:00
## Design
* The [server/](server/) is powered by Ruby
- [rack](https://github.com/rack/rack#readmne),
[graphql-ruby](https://github.com/rmosolgo/graphql-ruby#readme),
and [puma](https://github.com/puma/puma#readme)
- The server provides the /graphql endpoint for client <-> server communication
- The server serves static files (HTML, JS, CSS, ...) via [puma (Ruby HTTP server)](https://github.com/puma/puma#readme)
- The /graphql endpoint enters the [graphql-ruby](https://github.com/rmosolgo/graphql-ruby#readme) stack
* The [client/](client/) is powered by NodeJS
- [webpack](https://webpack.js.org/),
[typescript](https://www.typescriptlang.org/),
[react](https://react.dev/),
and [react-router](https://reactrouter.com/en/main)
- The client produces a build/ directory
- The client provides static files (HTML, JS, CSS, ...)
- The client provides routes via [react-router](https://reactrouter.com/en/main)
- The client communicates with the server via [@apollo/client (GraphQL client)](https://www.apollographql.com/docs/react/)
2024-08-01 04:15:21 +02:00
* The [cli/](cli/) is powered by Ruby
2024-04-26 19:08:38 +02:00
- Start / stop web server
- Run database migrations
- Run developer console
- Available as a RubyGem executable
2024-01-14 22:48:27 +01:00
* Each component (server, client, cli) are separate packages
2024-04-26 19:08:38 +02:00
in a monorepo
* Easy to distribute as a RubyGem
2024-01-14 22:48:27 +01:00
2023-12-08 19:27:00 +01:00
## Usage
2024-03-11 18:45:11 +01:00
**CLI**
2024-02-09 23:56:20 +01:00
2024-09-24 20:51:58 +02:00
Usage: cli COMMAND [OPTIONS]
2023-12-08 19:27:00 +01:00
Commands:
2024-04-26 19:08:38 +02:00
up Start the twenty web server
down Stop the twenty web server
migrate Migrate the database
console Start the twenty developer console
2023-12-08 19:27:00 +01:00
## Install
2024-09-24 20:51:58 +02:00
user@localhost$ webskel new myapp dolphins7
2023-12-08 19:27:00 +01:00
2024-03-12 09:10:02 +01:00
## Sources
2024-09-24 20:51:58 +02:00
* [GitHub](https://github.com/webskel/dolphins7.skeleton#readme)
* [GitLab](https://gitlab.com/0x1eef/dolphins7.skeleton#about)
* [brew.bsd.cafe/@webskel](https://brew.bsd.cafe/webskel/dolphins7.skeleton#about)
2024-03-12 09:10:02 +01:00
2023-12-08 19:27:00 +01:00
## License
[BSD Zero Clause](https://choosealicense.com/licenses/0bsd/).
<br>
See [LICENSE](./LICENSE)