Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/viet-tu/shopping-backend-ci-cd

shopping-backend-ci-cd
https://github.com/viet-tu/shopping-backend-ci-cd

Last synced: about 2 months ago
JSON representation

shopping-backend-ci-cd

Awesome Lists containing this project

README

        

# Redis shopping cart API

## Prerequisites

- Node - v12.19.0
- NPM - v6.14.8
- Docker - v19.03.13 (optional)

## Development

```
# Environmental variables

Copy `.env.example` to `.env` file and fill environmental variables

- REDIS_PORT: Redis port (default: 6379)
- REDIS_HOST: Redis host (default: 127.0.0.1)
- REDIS_PASSWORD: Redis password (default: demo)

cp .env.example .env

# Run docker compose or install redis with RedisJson module manually. You can also go to https://redislabs.com/try-free/ and obtain necessary environmental variables

docker network create global
docker-compose up -d --build

# Install dependencies

npm install

# Run dev server

npm run dev
```