Coder Social home page Coder Social logo

bibimbap's Introduction

추가하기 - 오브젝트 선택

놀다가

📆 2022.03 ~ 2022.06
🏫 2022 경상국립대학교 컴퓨터과학과 전공 소프트웨어설계PBL
👏🏻 2022 경상국립대학교 컴퓨터과학과 소프트웨어전시회 출품

🍚 비빔밥 팀

(이름 가나다순입니다)
고수민 김남혁 이승백 조정미
@wpslxm20 @los56 @yahoo557 @jung0115
경상대학교
컴퓨터과학과 20학번
경상대학교
컴퓨터과학과 17학번
경상대학교
컴퓨터과학과 17학번
경상대학교
컴퓨터과학과 20학번

공통

JWT Secret 설정

{PROJECT_DIR} / server / config / auth.config.js 파일 생성

module.exports = {
    secret : //암호화 키로 사용할 문자열 작성
};

Postgresql Library 설정

{PROJECT_DIR} / server / config / db.config.js 파일 생성

const { Pool, Client } = require('pg')
const Query = require('pg').Query
const client = new Client({
    user: //username,
    host: '127.0.0.1',
    database: 'noldaga',
    password: //password,
    port: //port
});
client.connect();

module.exports = client;

Docker

Docker 이미지 빌드

// Require superuser
sh docker-build.sh

Docker 이미지 Import & Run

// Require superuser

// Import & Create container & Run
sh run.sh

// Only import
docker load -i (db | server | client).tar

// Only run (Import)
docker-compose up -d

// Stop
docker-compose stop

Let's Encrypt 활용

  • 호스트 /usr/src/cert 폴더 아래에 인증서 저장 필요
  • 인증서를 찾을 수 없으면 http로 동작

Without Docker

서버 구동

// Run Server & Client
npm run dev

// Run Server
npm run server

// Run Client
npm run client

DB 스키마 설정 (ON Postgresql Shell)

  • Docker 사용 시 실행할 필요 없음
\i '{PROJECT_DIR}\\server\\sql\\initialize.sql'

TroubleShoot

  • 접속이 안됨 : 호스트 방화벽 확인

bibimbap's People

Contributors

jung0115 avatar los56 avatar yahoo557 avatar wpslxm20 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.