직접 쓰는 가계부, 틈씀이
- Preact
- Typescript
- SASS
- i18next
- Storybook
- Python & Django
- NginX, uWsgi
- MySQL
- SSR
- Docker
- AWS EC2 (Ubunto 20.04 LTS) with Elastic IP
- AWS RDS (MySQL)
- AWS Route 53
AWS EB=> AWS CodeDeploy- Travis CI
파이썬 3 설치 파이썬 홈페이지에서 다운로드/설치
mysql 설치
brew install mysql
가상환경 설정
// 설치
tumssum/server> python3 -m venv ./venv
// 가상 환경 진입
tumssum/server> source venv/bin/activate
의존성 설치
pip3 install -r requirements.txt
server/server/settings/.env
: for server development.client/.env
: for client development..env
: for production build with docker-compose including client and server environment variables. if using AWS EB, don't need this.
client/Dockerfile.dev
: Dockerfile for running a client development.server/Dockerfile.dev
: Dockerfile for running a server development.docker-compose.dev.yml
: Run development serversDockerfile
: Dockerfile for production buildnginx/Dockerfile
: Dockerfile for production builddocker-compose.yml
: Build client static files and run production server (nginx, uwsgi)
if using AWS EB, use only Dockerfile
and nginx/Dockerfile
without docker-compose.yml
file.
if using AWS CodeDeploy, use docker-compose.yml
with Dockerfiles.
docker-compose -f docker-compose.dev.yml up
: Run development servers.
mysql.server start
: Start a mysql local server.source venv/bin/activate
: activating virtual environment.py manage.py runserver --settings=server.settings.local
: Run a django development server.client/yarn start
: Run a preact development server.
client/npm install
: Installs dependenciesclient/npm run start
: Run a development, with Parcel Builderclient/npm run build
: Run a production build, with Parcel Builderclient/npm run lint
: Pass TypeScript files using ESLintclient/npm run test
: Run Jest and Enzyme withclient/npm run storybook
: Run a storybook dev server with 6006 portclient/npm run build-storybook
: Run a storybook buildenzyme-adapter-preact-pure
for your tests
source venv/bin/activate
: Run a virtual env.python3 manage.py runserver --settings=server.settings.local
: Run a development.
sudo systemctl stop nginx uwsgi
: Stop webserversudo sh build.sh
: Build client files and move to static foldersudo systemctl start nginx uwsgi
: Start webserver