Update git ignore and add notes for prod

This commit is contained in:
IRBorisov 2023-08-11 12:44:30 +03:00
parent 4b1b5a3dbe
commit 0b6fe5e027
2 changed files with 7 additions and 1 deletions

1
.gitignore vendored
View File

@ -6,6 +6,7 @@ cert/
rsconcept/backend/import/*.whl rsconcept/backend/import/*.whl
rsconcept/backend/static rsconcept/backend/static
rsconcept/backend/media rsconcept/backend/media
rsconcept/frontend/dist
# Byte-compiled / optimized / DLL files # Byte-compiled / optimized / DLL files
__pycache__/ __pycache__/

View File

@ -4,7 +4,7 @@ This readme file is used mostly to document project dependencies
# Developer Setup Notes # 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 - copy import wheels from ConceptCore to rsconcept\backend\import
- run rsconcept\backend\LocalEnvSetup.ps1 - run rsconcept\backend\LocalEnvSetup.ps1
- run 'npm install' in rsconcept\frontend - 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: 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 - 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] # Frontend stack & Tooling [Vite + React + Typescript]
<details> <details>
<summary>npm install</summary> <summary>npm install</summary>