Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/murshidazher/employee-manager-api

πŸ§‘β€πŸ’ΌπŸ’Ό An employee management api
https://github.com/murshidazher/employee-manager-api

express graphql monorepo turbo typescript

Last synced: about 4 hours ago
JSON representation

πŸ§‘β€πŸ’ΌπŸ’Ό An employee management api

Awesome Lists containing this project

README

        

# [employee-manager-api](https://github.com/murshidazher/employee-manager-api)

![Express.js](https://img.shields.io/badge/express.js-%23404d59.svg?logo=express&logoColor=%2361DAFB)
![GraphQL](https://img.shields.io/badge/-GraphQL-E10098?logo=graphql&logoColor=white)

> πŸ§‘β€πŸ’ΌπŸ’Ό An employee management system with express.js

## Table of Content

- [employee-manager-api](#employee-manager-api)
- [Table of Content](#table-of-content)
- [Pre-requisite](#pre-requisite)
- [Up and Running](#up-and-running)
- [LICENSE](#license)

### Pre-requisite

> πŸ’‘ We use pnpm as a drop-in replacement for `npm`

1. Install either nvm or asdf to manage your node version.
2. Install the node version mentioned in the `.nvmrc` file.
3. Install `pnpm` globally as package manager,

```sh
npm install -g pnpm
```

4. Install docker daemon and use `docker-compose` to spin up the necessary services,

```sh
pnpm --filter core-api docker:up
```

5. Seed the employees

```sh
pnpm --filter core-api migrate:seed
```

### Up and Running

```sh
pnpm i
# copy the .env.example and specify the url
pnpm cpy-env
# run the development server
pnpm i
pnpm build
pnpm --filter core-api start:dev
```

To execute any `core-api` script without changing directories,

```sh
pnpm --filter core-api {command}
```

## LICENSE

[MIT](./LICENSE) Β© [Murshid Azher](https://github.com/murshidazher)