christian-japan-devs / vietcatholicjp-old

Restart

Home Page:vietcatholicjp.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

vietcatholicjp - Project Overview

Project Setup

Clone the repository to your local machine

git clone

Backend setting

Create a Python virtual environment and install dependencies

python -m venv venv
source venv/bin/activate

Create a .env. file inside the backend directory to store environment variables for development, production

mkdir .env.dev
mkdir .env.prod
mkdir .env.prod.db

Build the new image and spin up the two containers:

docker-compose up -d --build

Run the migrations

docker-compose exec vietcatholic-backend python manage.py migrate --noinput

Ensure the default Django tables were created, use psql for checking:

docker-compose exec vietcatholic-db psql --username=vietcatochan --dbname=vietcatholicdb

To remove the volumes along with the containers

docker-compose down -v

Frontend setting

Run Yarn install

yarn install

Add new package

yarn add package-name

Getting Started

Run the development server:

yarn dev

Working with Git

Before creating a new branch, pull the changes from upstream. Your master needs to be up to date.

$ git pull

Create the branch on your local machine and switch in this branch :

git checkout -b [name_of_your_new_branch]

Push the branch on github :

git push origin [name_of_your_new_branch]

About

Restart

vietcatholicjp.vercel.app

License:MIT License


Languages

Language:TypeScript 91.8%Language:Python 5.8%Language:JavaScript 1.2%Language:Dockerfile 0.7%Language:Shell 0.4%