https://github.com/fayasnoushad/blog-website
A blog website made with ReactJS as frontend and Python Flask as backend.
https://github.com/fayasnoushad/blog-website
Last synced: 8 months ago
JSON representation
A blog website made with ReactJS as frontend and Python Flask as backend.
- Host: GitHub
- URL: https://github.com/fayasnoushad/blog-website
- Owner: FayasNoushad
- License: mit
- Created: 2024-09-22T07:09:26.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-20T10:36:04.000Z (10 months ago)
- Last Synced: 2025-01-27T15:18:26.926Z (8 months ago)
- Language: JavaScript
- Homepage:
- Size: 117 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Blog Website
A blog website made with ReactJS as frontend and Python Flask as backend.
---
## Features
- ReactJS (Frontend): A multi-page blog website with a responsive design.
- Python Flask (Backend): A RESTful API for the frontend to interact with the database.
- MongoDB (Database): A NoSQL database to store the blog posts and user information.
- JWT (Authentication): JSON Web Tokens are used for user authentication.---
## How to run?
#### Run backend
1. Go to the `backend` directory.
```bash
cd backend
```
2. Create a virtual environment:
```bash
python3 -m venv .venv
```
3. Activate the virtual environment:
> linux command
```bash
. ./.venv/bin/activate
```
4. Install the required dependencies:
```bash
pip install -r requirements.txt
```
5. Run the following command:
```bash
flask --app app.py run
```
6. The backend server will start running on `http://localhost:5000`.#### Run frontend
1. Go to the `frontend` directory.
```bash
cd frontend
```
2. Run the following command:
```bash
npm run build
```
3. The frontend server will start running on `http://localhost:3000`.---