Skip to content

Django and React app. Added feature to aggregate posted data to a designated db and test feature of vectoriser over text data.

Notifications You must be signed in to change notification settings

joanna350/Posting-app

Repository files navigation

Project Scope

  • Django app takes in user id, email, message from an endpoint and saves them with the datetime of creation
  • React component is utilized through Webpack to paginate the data aggregated at the endpoint
  • Scheduler.py will count the messages uploaded at the end of each day on a day or a list of days within a time range, (all user input) and cache into instance variable
  • By the end of day of the end of month, daily counts will be summed and exported/appended to csv file

Evironment

  • Python3
  • Mac OS Catalina / Ubuntu 18.04

Project/App Setup

  • Setup directory
mkdir __folder_name__ && cd $_

python3 -m venv .
source bin/activate
pip3 install -r requirements.txt

React Frontend

  • Install Node
(Mac) brew install node

(Ubuntu) steps

  • under the directory [frontend]
npm init -y
npm i webpack webpack-cli --save-dev
npm i @babel/core babel-loader @babel/preset-env @babel/preset-react --save-dev
npm i react react-dom --save-dev
npm run dev

Run

  • At the root of the project
python3 manage.py makemigrations
python3 manage.py migrate
python3 manage.py runserver

Create Test Data

  • Add data under the endpoint localhost:port/api/lead/

Scheduler

python3 scheduler.py 2011-02-15 2021-08-31 11 7 15 18
  • Format to pass start of the period, end of the period, day to post, days to comment as parameters

Vectorizer

python3 vectorizer.py
  • Treats each post or comment as a document. Sentences longer than 1 is accepted input

About

Django and React app. Added feature to aggregate posted data to a designated db and test feature of vectoriser over text data.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published