GithubHelp home page GithubHelp logo

start's Introduction

START! - EI333 Software Engineering Project

START! 即Study Together And Review Together!

成员

前端:张世康(负责人)、喻智勇

后端:万新熠(组长&负责人)、郎伟临、田亚博

特别鸣谢:史历

时间表

2020.6.17

How to run?

  1. In frontend directory, type
npm start
  1. In backend directory, type
python3 manage.py runserver
  1. In your browser, visit
http://localhost:3000/init

前端运行

in frontend,type:

npm install -g create-react-app
npm install
npm start

在url后面加regist/login

MySQL搭建方法

  1. 若没有安装MySQL,请前往此网址下载。
https://dev.mysql.com/downloads/file/?id=495322

安装时最好在设置root密码界面(root密码可自己任取),点击右下方add User添加一个用户,用户名为start, 密码为start,权限db admin。也可在安装完成后使用命令行新建一个start用户并给予权限。(已安装请跳过此步)

  1. 打开MySQL Workbench,点击MySQL Connections右侧加号创建新项目

  1. Connection Name任取, Usename填写start, 点击password栏 Store in Valtu..按钮, password填写start,点击ok 。点击Test connection确保创建成功。(若失败可能是MySQL没有正确安装)再点击ok完成项目创建。

  2. 点进此图标创建一个新数据库。数据库名为django_mysql, 点击Apply。

  3. 确保本地仓库已经更新。

  4. 确保pymysql库已安装。

  5. 运行(使用Pycharm,修改相应Parameters也可)

    python manage.py makemigrations
    python manage.py migrate
  6. 重新创建超级管理员,运行

python manage.py createsuperuser

设置管理员用户名为start,密码为start

  1. 运行
python manage.py runserver

开启后端服务,打开MySQL 访问

http://localhost:8000/admin

即可进入Django后端管理页面,可以在此页面添加或删除,在workbench中可以看到数据相应变化

start's People

Contributors

rikosellic avatar handsomezsk avatar stilwl avatar cruisetian avatar yzysmartboy avatar shili2017 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.