Global Project Funding Service
git clone https://github.com/siliconValleyTeamA/server.git
cd server
npm install
- add cofing.json in db folder
confing.json
{
"host": “${serverIP}”,
"user": “${dbUser}”,
"password”: “${dbPassword}”,
"database": “${dbName}”
}- add secret.json in root folder
secret.json
{
"SECRET_KEY": “${loginKEY}”
}- add auth.json in root folder
auth.json
{
"CLIENT_ID": "${githubPassPortID}",
"CLIENT_SECRET": "${githubPassPortID}",
"CALLBACK_URL": "${githubCallbackURL}"
}- add s3config.json in route folder
auth.json
{
"accessKeyId": "${S3accessKeyId}",
"secretAccessKey": "${S3secretAccessKey}",
"region": "${S3region}"
}npm run devThen, you can access to your server http://localhost:8080
Backend
ETC
|-- server // Backend
|-- bin
| |-- www
|
|-- public
| |-- docs
| | ... // 스웨거 관련 파일
| |
| |-- swagger.yaml
|
|-- db
| ... // 데이터베이스 작업 처리(config.json 위치)
|
|-- routes
| ... // 라우터 요청에 따른 작업 처리(s3config.json 위치)
|
|-- views
| ... // pug 파일
|
|-- app.js
|-- auth.json
|-- secret.json 