Skip to content

Commit

Permalink
Merge pull request #64 from 8iq/prepare-to-0.0.2
Browse files Browse the repository at this point in the history
chore: cleanup and start from scratch
  • Loading branch information
pahaz authored May 11, 2024
2 parents b7d70ee + fec5bea commit 934983c
Show file tree
Hide file tree
Showing 257 changed files with 426 additions and 17,856 deletions.
3 changes: 2 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@
**/dist
**/out
**/.idea
**/.vscode
**/.kmigrator
**/.turbo
**/docs
**/.config
**/.yarn
**/.cache
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.

30 changes: 30 additions & 0 deletions .github/workflows/ci.build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
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: |
corepack enable
yarn set version stable
yarn install
- name: BUILD
run: yarn build
23 changes: 23 additions & 0 deletions .github/workflows/ci.docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
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

- name: Setup debug by SSH if failure ci session
uses: lhotari/action-upterm@v1
if: ${{ failure() }}
with:
wait-timeout-minutes: 5
30 changes: 30 additions & 0 deletions .github/workflows/ci.linters.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
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: |
corepack enable
yarn set version stable
yarn install
- run: yarn format --check
- 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.

89 changes: 74 additions & 15 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,22 +1,25 @@
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.*

# mobile
Expand All @@ -26,3 +29,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
Binary file added .yarn/install-state.gz
Binary file not shown.
1 change: 1 addition & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nodeLinker: node-modules
Loading

0 comments on commit 934983c

Please sign in to comment.