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

https://github.com/kwadwoatta/appa-api

Appa is a real-time package delivery system built with Socket.io
https://github.com/kwadwoatta/appa-api

mongodb mongoose nestjs socket-io

Last synced: 3 months ago
JSON representation

Appa is a real-time package delivery system built with Socket.io

Awesome Lists containing this project

README

          

# Appa Backend API


Appa Logo

## Installation

1. clone the repo

```bash
git clone https://github.com/kwadwoatta/appa-api.git
```

2. cd into the repo

```bash
cd appa-api
```

3. copy .env.example to .env and fill them out

4. install all dependencies

```bash
pnpm install
```

5. [download docker](https://www.docker.com/products/docker-desktop/)

6. start the mongodb (database) service

```bash
docker compose up -d
```

7. start the app in development mode

```bash
pnpm start:dev
```

8. import db/appa.user.json into mongodb

9. visit url in Postman

```bash
http://localhost:3000/api/
```

10. login with one of the seeded users

```ts
{
"email": "customer@gmail.com",
"password": "password"
}
```

11. copy access token and set as authorization header for subsequent requests

```graphql
Authorization: Bearer {your access token}
```