Skip to main content

Conduit Fullstack Project

Table of Contents

Introduction

This is a README description of our Conduit Project. The Conduit is a clone of Medium.com

Prerequisites

  • Docker
  • Docker Compose

Quickstart

  1. Clone the following Git Repository:
git clone git@github.com:HerzogElias/conduit-fullstack.git
  1. Navigate to the correct directory:
cd conduit-fullstack
  1. Clone all submodules
git submodule update --init --recursive
  1. Copy your backend environment file. Navigate:
cd backend

Copy the file:

cp example.env .env

Navigate back to root:

cd ..
  1. Start Docker Compose
docker compose up --build

Usage

CI/CD Pipeline

This project is using a CI and CD pipeline with Github Actions. Trigger:

  • Automatically runs on every push to Main/Default branch.
  • Manual run on Main/Default branch available.

Description: This pipeline logs in to your VServer. After login, the pipeline runs a docker compose build.

Secret Keys: To use the CI/CD pipeline on your own cloned repository, you need the following secret keys in your Github Repo Settings:

      SERVER_IP
SERVER_PORT
SERVER_USER
SERVER_SSH_KEY
SECRET_KEY
production
apiurl
DJANGO_PW
DJANGO_EMAIL
DJANGO_USER

Example secret keys are from our environment files.

Description Fullstack Project

This is a fullstack web application with Github submodules. Here you can see the root Github repository. To change to frontend or backend use the links:

Stop Docker Container

To stop the container use the following command:

docker compose down 

Delete Docker Container

To delete the Docker container including all networks and volumes use the following command:

docker compose down -v