Skip to content

jordigarciaventura/view-and-review

 
 

Repository files navigation

view-and-review

Open in Dev Containers

Run Locally

Development

  1. Copy the secrets/env.dev.example file to secrets/.env.dev and fill it
  2. Run the containers:
    docker compose up --build
    
  3. Visit http://localhost:8000

Deployment

  1. Copy the secrets/env.dep.example file to secrets/.env.dep and fill it
  2. Run the containers:
    docker compose -f docker-compose.dep.yml up --build
    
  3. Visit http://localhost

Deployment over HTTPS

  1. Copy the secrets/env.deps.example file to secrets/.env.deps and fill it

  2. Install mkcert

  3. Create a local certificate authority

    mkcert -install
    
  4. Create a trusted certificate on /ngnix/certficates

    cd nginx/certificates
    
    mkcert localhost
    
  5. Run the containers:

    docker compose -f docker-compose.deps.yml up --build
    
  6. Visit https://localhost

The deployment over HTTPS uses HSTS policies, so browser will redirect the HTTP requests to HTTPS for security. To delete the policies for localhost in Chrome, for example, go to chrome://net-internals/#hsts > Domain Security Policy > Delete domain security policies, and add localhost to the input field.

Services

Development Deployment
Web app django django
WSGI django bulit-in gunicorn
Database postgreSQL postgreSQL
Web Server - nginx

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 34.3%
  • CSS 33.4%
  • Python 18.2%
  • HTML 12.4%
  • Gherkin 1.2%
  • Dockerfile 0.3%
  • Other 0.2%