Skip to content

Commit

Permalink
feat(users): implement demo RESTful API (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
derevnjuk committed May 27, 2022
1 parent 3f679e8 commit 9c27b7a
Show file tree
Hide file tree
Showing 19 changed files with 6,118 additions and 383 deletions.
3 changes: 3 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
MYSQL_USER=test
MYSQL_PASSWORD=test
MYSQL_ROOT_PASSWORD=root
7 changes: 5 additions & 2 deletions .github/workflows/auto-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ env:
jobs:
build-and-test:
runs-on: ubuntu-latest
needs: install-deps
steps:
- name: Checkout
uses: actions/checkout@v2
Expand Down Expand Up @@ -42,4 +41,8 @@ jobs:
run: npm run build

- name: Run tests
run: npm run test
run: |
docker compose up -d
npm run migration:up
npm run test --testTimeout 10000
docker compose down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ testem.log
Thumbs.db

# Config Files
.env
tests/.env.example
13 changes: 13 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
version: '3'

services:
mysql:
image: mysql:8
restart: always
environment:
MYSQL_USER: '${MYSQL_USER:-test}'
MYSQL_PASSWORD: '${MYSQL_PASSWORD:-test}'
MYSQL_ROOT_PASSWORD: '${MYSQL_ROOT_PASSWORD:-root}'
MYSQL_DATABASE: test
ports:
- '3306:3306'
5 changes: 5 additions & 0 deletions nest-cli.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"$schema": "https://json.schemastore.org/nest-cli",
"collection": "@nestjs/schematics",
"sourceRoot": "src"
}
Loading

0 comments on commit 9c27b7a

Please sign in to comment.