Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/madjava/subscription-service

Subscription As A Service - A NodeJS app to manage user subscriptions
https://github.com/madjava/subscription-service

Last synced: about 2 months ago
JSON representation

Subscription As A Service - A NodeJS app to manage user subscriptions

Awesome Lists containing this project

README

        

## Start a Docker MySql instance

```bash
docker run --name subscription-as-a-service -e MYSQL_ROOT_PASSWORD=my-secret-pw -p 3306:3306 -d mysql:5.7

```
```sql
CREATE SCHEMA SubscriptionAsAService CHARACTER SET utf8mb4;
```

```bash
docker run --name plans-db -e MYSQL_ROOT_PASSWORD=my-secret-pw -p 3307:3306 -d mysql:5.7
```

```sql
CREATE schema PlansDb CHARACTER SET "utf8mb4"
```

```bash
docker run --name subscriptions-db -e MYSQL_ROOT_PASSWORD=my-secret-pw -p 3308:3306 -d mysql:5.7
```

```sql
CREATE schema SubscriptionsDb CHARACTER SET 'utf8mb4';
```

```bash
docker run --name auth-db -e MYSQL_ROOT_PASSWORD=my-secret-pw -p 3309:3306 -d mysql:5.7
```

```sql
CREATE schema Users CHARACTER SET 'utf8mb4';
```

```bash
sequelize model:generate --name Plan --attributes name:string,price:float,type:string,userId:integer --force
```

```bash
sequelize model:generate --name Subscription --attributes planId:integer,coupon:string,cardnumber:string,holderName:string,expirationDate:string,cvv:string --force
```

```bash
sequelize db:migrate
```

```bash
docker run --name plans-cache -p 6380:6379 -d redis
```