BrianSeong99 / jinwoo_cloud_scheduler

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cloud Scheduler

Note

Deployment Environment:

node 10.16.3
npm 6.9.0
python 3.7.1

This project is created with the following scripts:

# frontend
npm config set registry https://registry.npm.taobao.org
npm install --global vue-cli
vue init webpack frontend
# backend
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple django
django-admin startproject api
mv api backend

Getting Started

Install dependencies.

cd frontend
npm install
cd ../backend
pip install -r requirements.txt

Run backend

cd backend
python manage.py migrate
python manage.py runserver

Run frontend

cd frontend
npm run dev

Unit Tests

Frontend

npm run unit

Backend

pytest

Note: if you encounter problems in frontend unit test, try

node node_modules/jest/bin/jest.js --clearCache

Style Tests

Frontend

npm run lint

Backend

pylint --load-plugins=pylint_django api

About


Languages

Language:Python 55.8%Language:Vue 30.4%Language:JavaScript 11.0%Language:HTML 1.3%Language:CSS 1.2%Language:Dockerfile 0.2%Language:Shell 0.0%Language:Makefile 0.0%