Skip to content

Commit

Permalink
chore: cleanup and start from scratch
Browse files Browse the repository at this point in the history
  • Loading branch information
pahaz committed May 11, 2024
1 parent b7d70ee commit 14945a2
Show file tree
Hide file tree
Showing 253 changed files with 270 additions and 17,835 deletions.
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
**/dist
**/out
**/.idea
**/.vscode
**/.kmigrator
**/.turbo
**/docs
**/.config
**/.yarn
Expand Down
17 changes: 1 addition & 16 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,18 +1,3 @@
#DATABASE_URL=mongodb://mongo:[email protected]/main?authSource=admin
DATABASE_URL=postgresql://postgres:[email protected]/main
#DATABASE_URL=postgresql://postgres:[email protected]/main
NODE_ENV=development
DISABLE_LOGGING=true
COOKIE_SECRET=random
SERVER_URL=http://localhost:3000

# production docker deploy envs!
DOCKER_FILE_INSTALL_COMMAND="python3 -m pip install 'psycopg2-binary>=2.8.5' && python3 -m pip install 'Django>=3.0.6'"
DOCKER_FILE_BUILD_COMMAND=yarn workspace @app/demo build
DOCKER_COMPOSE_APP_IMAGE_TAG=demo
DOCKER_COMPOSE_START_APP_COMMAND=yarn workspace @app/demo start
#DOCKER_COMPOSE_DATABASE_URL=mongodb://mongo:mongo@mongodb/main?authSource=admin
DOCKER_COMPOSE_DATABASE_URL=postgresql://postgres:postgres@postgresdb/main
DOCKER_COMPOSE_COOKIE_SECRET=random
# change it -------------------^
DOCKER_COMPOSE_SERVER_URL=https://demo.dok.8iq.dev
# change it -------------------^
14 changes: 0 additions & 14 deletions .eslintignore

This file was deleted.

27 changes: 27 additions & 0 deletions .github/workflows/ci.build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: TEST BUILD

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [16.x, 20.x]

steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: install packages
run: yarn
- name: BUILD
run: yarn build
17 changes: 17 additions & 0 deletions .github/workflows/ci.docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: TEST DOCKER

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: install packages
run: docker-compose build
27 changes: 27 additions & 0 deletions .github/workflows/ci.linters.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: LINTERS

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [20.x]

steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: install packages
run: yarn
- name: BUILD
run: yarn lint
53 changes: 0 additions & 53 deletions .github/workflows/nodejs.apps.demo.yml

This file was deleted.

32 changes: 0 additions & 32 deletions .github/workflows/nodejs.apps.front.yml

This file was deleted.

25 changes: 0 additions & 25 deletions .github/workflows/nodejs.codestyle.yml

This file was deleted.

44 changes: 0 additions & 44 deletions .github/workflows/nodejs.demo.deploy.yml

This file was deleted.

88 changes: 74 additions & 14 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,20 +1,24 @@
node_modules
dist
out
.next
# IDEs and editors
.idea
.env
.kmigrator
.DS_Store
.docker-cache-warming
.expo
.expo-shared
web-build
__generated__
__media
_example.js
.project
.classpath
.c9
*.launch
.settings/
*.sublime-workspace
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json

# yarn + npm
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
yarn-error.log
yarn.lock
npm-debug.*
Expand All @@ -26,3 +30,59 @@ npm-debug.*
*.key
*.mobileprovision
*.orig.*

# Swap the comments on the following lines if you wish to use zero-installs
# In that case, don't forget to run `yarn config set enableGlobalCache false`!
# Documentation here: https://yarnpkg.com/features/caching#zero-installs

#!.yarn/cache
.pnp.*

# nx
.nx/cache

# System Files
.DS_Store
Thumbs.db
*.pem

# Dependencies
node_modules

# Local env files
.env
.env.local
.env.development.local
.env.test.local
.env.production.local

# Testing
coverage

# Build Outputs
.turbo
.next/
out/
build
dist
.next
.kmigrator
.expo
.expo-shared
.vercel
web-build

# Debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Misc
/.sass-cache
/connect.lock
/libpeerconnection.log
testem.log
/typings
__generated__
__media
_example.js
Loading

0 comments on commit 14945a2

Please sign in to comment.