Encore examples
Examples to help you build fully-functioning, scalable, backend applications using Encore.
Example | Description | Primitives | Requirements |
---|---|---|---|
hello-world | Simple REST API | APIs | - |
slack-bot | Slack bot | APIs | - |
url-shortener | Basic url shortener | APIs, SQL Database | Docker |
uptime | Uptime monitoring system | Microservices, SQL Databases, Pub/Sub, Cron Jobs | Docker |
trello-clone | Backend for a Trello application | Microservices, APIs, SQL Database | Docker |
graphql | Url shortener that uses GraphQL | APIs, SQL Database, GraphQL | Docker |
sql-database | Simple API with SQL database | APIs, SQL Database | Docker |
sqlc-database | Simple sqlc implementation | APIs, SQL Database | sqlc, Docker |
If this is the first time you're using Encore, you first need to install the CLI that runs the local development environment. Follow the installation instructions in the documentation, or get started with the Quick Start Guide.
Each sub-folder in this repo contains an example application that you can use to try out Encore.
To run the example applications, either clone this repository and run encore run
in one
of the subdirectories, or use encore app create [app-name] --example=[example-name]
to
create your own app based on the example.
For example, to create an app based on the sql-database
example:
$ encore app create my-app --example=sql-database
Successfully created app my-app.
$ cd my-app
$ encore run
Running on http://localhost:4000
8:00AM INF registered endpoint endpoint=There service=hello
If you prefer to build one of the examples from scratch, check out the tutorials available in the Encore documentation.