Coder Social home page Coder Social logo

wpslxm20 / bibimbap Goto Github PK

View Code? Open in Web Editor NEW

This project forked from yahoo557/bibimbap

0.0 0.0 0.0 991.06 MB

☠️ 소프트웨어 설계 PBL 비빔밥팀 레포

JavaScript 52.39% CSS 0.48% HTML 37.40% G-code 6.58% Roff 3.15% Dockerfile 0.01% Shell 0.01%

bibimbap's Introduction

놀다가

경상국립대학교 컴퓨터과학과 2022년 소프트웨어 전시회 비빔밥 팀


공통

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

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.