누구나 쉽게 만들고, 쉽게 답변할 수 있는 폼
Make Easy, Answer Easy
- Backend
- Nest.js
- TypeORM
- GraphQL
- JWT/OAuth2
- PM2
 
- Frontend
- React/Typescript
- Apollo
- Ant Design
 
- Database
- MySQL
 
- Infra
- Docker-compose + shell-script
- Nginx + certbot
 
- Clone this repo
git clone https://github.com/zinirun/formify.git 
- Create environment setup
- in root folder
- create .envDATABASE = "" DB_USER = "" DB_PASSWORD = "" DB_HOST = "db"
 
- create 
- in backendfolder- create .envSERVER_ADDR = "http://YOUR_URL:4000" CLIENT_ADDR = "http://YOUR_URL" GOOGLE_CLIENT_ID = "" GOOGLE_SECRET = "" GITHUB_CLIENT_ID = "" GITHUB_SECRET = "" JWT_SECRET_KEY = ""
- create ormconfig.jsonand define your database / same with root environment setup{ "type": "mysql", "host": "db", "port": 3306, "username": "", "password": "", "database": "", "entities": ["dist/**/*.entity{.ts,.js}"], "synchronize": true }
 
- create 
- (*) in frontend/package.json- add backend proxy when develop
"proxy": "http://localhost:4000" 
 
- add backend proxy when develop
 
- in root folder
- Setup Packages
cd backend yarn install cd ../frontend yarn install 
- Start Projects
yarn start:dev # backend yarn start # frontend 
- Init your host (Ubuntu)
chmod +x init.sh ./init.sh 
- Do docker-compose up
docker-compose up -d --build 
- Rebuild images and containers
chmod +x rebuild.sh ./rebuild.sh 
Formify is MIT licensed.
