Skip to content

jasons1425/CSCI3100-project-cucrowd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

cu-crowd

Project tools

Frontend: React.JS

Backend: Python Django

Framework: https://www.django-rest-framework.org/

Design: Figma https://www.figma.com/file/MwBMWKmREYUG3DNRwUHaaP/CSCI3100_project?node-id=0%3A1

Project development model

SCRUM, Sprint Structure (Agile Software Development)

https://searchsoftwarequality.techtarget.com/definition/Scrum-sprint

https://www.scnsoft.com/blog/software-development-models#Scrum

High-Level Description

https://docs.google.com/document/d/1I2MnXVgWsSJvWj0sM4RzHOcH3UH_gpJIyJ3-lNy49vw/edit?usp=sharing

Testing Gmail Account

email:

password:

Set Up

Frontend (localhost:3000)

  1. Install Node.js: https://nodejs.org/en/download/

  2. Open the command terminal, and test whether the npm command works: npm --version

  3. Go to the /main/frontend/ directory, and run the below commands:

> npm i react-script --save
> npm install axios --save
> npm start

MySQL Database (localhost:3306)

  1. Install the MySQL database server and MySQL Command Line Client: Installation Guide

  2. Create the MySQL root user with the below credentials: (or, modify the database credentials details in the /backend/backend/settings.py)

username: root
password: 123456Aa
  1. Ensure the MySQL server is running (on Windows, open the admin CMD console and run net start mysql80)

  2. Open and log in to the MySQL Command Line Client

  3. Create the cucrowd database: CREATE DATABASE cucrowd;

Backend (localhost:8000)

  1. Install Python version 3.9 or above: https://www.python.org/downloads/

  2. Open the command terminal and test whether the python command works: python --version

  3. Go to the /main/backend/ directory, and run the below commands

> python install -r requirements.txt
> python manage.py migrate

Getting Started

  1. Ensure the MySQL server is running at localhost:3306

  2. Open a command terminal, go to the /main/frontend/ directory and run npm start

  3. Open another command terminal, go to the /main/backend/ directory and run python manage.py runserver

Creating a Superuser and Accessing Admin site

  1. Open the command terminal and go to the /main/backend/ directory

  2. Run the below commands and type in the credentials for new superuser:

> python manage.py createsuperuser
Username: <username for superuser>
Email: <email for superuser>
Password: <password>
Password (again): <password>
Superuser created successfully.
  1. Run the below commands to start the backend API and admin server:
> python manage.py runserver
  1. Open http://localhost:8000/admin/ in a new browser tab to access the admin site

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 5