An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

[![](https://dcbadge.vercel.app/api/server/fTpqUTMmVa?style=flat)](https://discord.gg/fTpqUTMmVa) [](https://www.linkedin.com/in/oskardudycz/) [![Github Sponsors](https://img.shields.io/static/v1?label=Sponsor&message=%E2%9D%A4&logo=GitHub&link=https://github.com/sponsors/oskardudycz/)](https://github.com/sponsors/oskardudycz/) [![blog](https://img.shields.io/badge/blog-event--driven.io-brightgreen)](https://event-driven.io/?utm_source=event_sourcing_nodejs) [![blog](https://img.shields.io/badge/%F0%9F%9A%80-Architecture%20Weekly-important)](https://www.architecture-weekly.com/?utm_source=event_sourcing_nodejs)

![](./docs/public/logo.png)

# 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