From 0b6fe5e027bb0a6b192c0baa3b5f82a35e883917 Mon Sep 17 00:00:00 2001 From: IRBorisov <8611739+IRBorisov@users.noreply.github.com> Date: Fri, 11 Aug 2023 12:44:30 +0300 Subject: [PATCH] Update git ignore and add notes for prod --- .gitignore | 1 + README.md | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 4cedcb20..4e45dd77 100644 --- a/.gitignore +++ b/.gitignore @@ -6,6 +6,7 @@ cert/ rsconcept/backend/import/*.whl rsconcept/backend/static rsconcept/backend/media +rsconcept/frontend/dist # Byte-compiled / optimized / DLL files __pycache__/ diff --git a/README.md b/README.md index aab0c854..6d5c9db4 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ This readme file is used mostly to document project dependencies # Developer Setup Notes -- Install Python 3.9, NodeJS, VSCode +- Install Python 3.9, NodeJS, VSCode, Docker Desktop - copy import wheels from ConceptCore to rsconcept\backend\import - run rsconcept\backend\LocalEnvSetup.ps1 - run 'npm install' in rsconcept\frontend @@ -12,6 +12,11 @@ This readme file is used mostly to document project dependencies - production: create secrets secrets\db_password.txt and django_key.txt - production: provide TLS certificate nginx\cert\portal-cert.pem and nginx\cert\portal-key.pem +# Contributing notes +- use Test config in VSCode to run tests before pushing commits / requests +- !BEFORE PUSHING INTO MAIN! in rsconcept\frontend run in terminal 'npm run build' and fix all errors +- when making major changes make sure that Docker production is building correctly. run 'docker compose -f docker-compose-prod.yml up' + # Frontend stack & Tooling [Vite + React + Typescript]
npm install