Coder Social home page Coder Social logo

yiewker / rscd Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ase-g10/rscd

0.0 0.0 0.0 1.86 MB

Group work repository for Advanced Software Engineering

Home Page: https://rscd.iocky.com

Shell 0.09% JavaScript 5.11% Python 12.85% HTML 0.30% Vue 81.66%

rscd's Introduction

Response System to City Disaster - RSCD

Advanced Software Engineering - Group10

This is the repository for the ASE project of Group 10.

You can visit the live demo here:

Production Build

https://rscd.iocky.com
https://mine.bf
(mine.bf link may only be available for a limited time.)

Staging Build with Staging APIs

https://rscdstaging.iocky.com/

Group Members

To contact all group members, please send an email to: [email protected]

KAIYU CHEN - [email protected]
DEHAO DONG - [email protected]
JIAWEI SHEN - [email protected]
PEICHEN SUN - [email protected]
HAOKUN ZHANG - [email protected]
XIAOYAO ZHU - [email protected]
YIFAN ZHU - [email protected]

Project Description

This system involves citizens of Dublin City reporting a disaster at any location in the city. By reporting the disaster to the Emergency Response Team, the Emergency Response Team can then take corresponding measures to address the disaster in a timely manner.

Project Structure

The project is divided into two parts: the front-end and the back-end. The front-end is developed using React, and the back-end is developed using Django. The front-end and back-end are connected through RESTful APIs.

How to run the project

Back-end

Install the required packages

Install the required packages in the virtual environment

pip install -r requirements.txt

Go to the project directory

cd backend

Create a .env file

touch .env

Add the following content to the .env file

DJANGO_SECRET_KEY=
DJANGO_DEBUG=
DJANGO_DB_NAME=
DJANGO_DB_USER=
DJANGO_DB_PASSWORD=
DJANGO_DB_HOST=
DJANGO_DB_PORT=

Run the following commands

python manage.py makemigrations
python manage.py migrate

Run the server

python manage.py runserver

Front-end

Before Running

Add your Google Map API and backend url to .env file

VUE_APP_GOOGLE_MAP_API=
VUE_APP_BACKEND_URL=http://[your_backend_host]:[your_backend_port]/dr/api

Build Setup

install dependencies

npm install

serve with hot reload at localhost:8080

npm run dev

build for production with minification

npm run build

lint

npm run lint

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.