Skip to content

Display, tag and save Reddit data in postgresql database.

Notifications You must be signed in to change notification settings

M-e-r-c-u-r-y/DisplayReddit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DisplayReddit

DisplayReddit is a way to to display data extracted from RedditScrapy, tag it and save the results in database.

The frontend is written using React[Redux Toolkit, antd] and the backend with fastapi[tortoise orm], db used is postgresql.

Sample UI images

Home page

Entries page

To use docker to start the app

Navigate to the root of this repo after cloning onto your machine and run the following command

docker-compose up -d starts the app

docker-compose down stops the app

To run directly on your machine

To start frontend

Navigate to the frontend folder and run the following commands

npm install installs the dependencies

npm start starts the server

Navigate to the backend folder and run the following commands

To start backend

pip3 install -r requirements.txt installs the dependencies

uvicorn main:app --reload starts the server

Ensure the files generated by RedditScrapy are stored in the output folder whose path is set in the OUTPUT_PATH environment variable(Assumed to be in same level as this repo when cloned to your machine)

http://localhost:8000 is where the backend can be accessed

http://localhost:3000 is where the frontend can be accessed

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT