Skip to content

2020147570/DB_Project

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

시공〮간 복합 랑데부 기반 실시간 메시징 시스템

How To Develop

Install Dependencies

$ npm install

Configure VSCode Settings

  1. Install Prettier - Code formatter extension

  2. Create file .vscode/settings.json

{
    "editor.formatOnSave": true,
    "[javascript]": { "editor.defaultFormatter": "esbenp.prettier-vscode" },
    "[javascriptreact]":{ "editor.defaultFormatter": "esbenp.prettier-vscode" },
    "[typescript]": { "editor.defaultFormatter": "esbenp.prettier-vscode" },
    "[typescriptreact]": { "editor.defaultFormatter": "esbenp.prettier-vscode" }
}

Configure .env file

NODE_ENV=development
PORT=5000
DB_USER=
DB_PASSWORD=
DB_DATABASE=
DB_HOST=127.0.0.1
ACCESS_TOKEN_SECRET={random string}

Tip: generate random string

# Start node console
$ node
# Use crypto library to accquire random bytes and convert it to a string
$ require("crypto").randomBytes(48).toString('hex')

Run the app

$ npm run dev

Project Structure

├── client
│   ├── public
│   └── src
│       └── components
│           └── views
│               ├── LandingPage
│               ├── LoginPage
│               ├── NavBar
│               └── RegisterPage
└── server
    ├── config
    ├── controllers
    ├── database
    ├── middleware
    ├── models
    └── routes

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 88.9%
  • CSS 9.0%
  • HTML 2.1%