Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/madjava/subscription-service
- Owner: madjava
- Created: 2019-12-14T14:51:25.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-02-24T22:56:17.000Z (almost 2 years ago)
- Last Synced: 2023-03-01T06:22:37.167Z (almost 2 years ago)
- Language: JavaScript
- Size: 1.03 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 44
-
Metadata Files:
- Readme: README.md
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
```