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 dev
Then, 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