https://github.com/event-driven-io/emmett-starter-postgresql
Emmett WebAPI starter repository with PostgreSQL
https://github.com/event-driven-io/emmett-starter-postgresql
Last synced: 12 months ago
JSON representation
Emmett WebAPI starter repository with PostgreSQL
- Host: GitHub
- URL: https://github.com/event-driven-io/emmett-starter-postgresql
- Owner: event-driven-io
- License: mit
- Created: 2024-10-22T08:15:54.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-14T12:01:17.000Z (over 1 year ago)
- Last Synced: 2025-06-23T00:42:31.613Z (12 months ago)
- Language: TypeScript
- Size: 156 KB
- Stars: 8
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
[](https://discord.gg/fTpqUTMmVa) [
](https://www.linkedin.com/in/oskardudycz/) [](https://github.com/sponsors/oskardudycz/) [](https://event-driven.io/?utm_source=event_sourcing_nodejs) [](https://www.architecture-weekly.com/?utm_source=event_sourcing_nodejs)

# Emmett - template showing event-sourced WebApi with Express.js and PostgreSQL
Read more in [Emmett getting started guide](https://event-driven-io.github.io/emmett/getting-started.html).
## Prerequisities
You need to install packages with
```bash
npm install
```
## Running
Sample require PostgreSQL, you can start it by running
```bash
docker-compose up
```
Then just run
```bash
npm run start
```
## Running inside Docker
To build application:
```bash
docker-compose --profile app build
```
To run application:
```bash
docker-compose --profile app up
```
### Testing
You can either run tests with
```
npm run test
```
Or manually with prepared [.http](.http) file