Skip to content

A blog website made with ReactJS as frontend and Python Flask as backend.

License

Notifications You must be signed in to change notification settings

fayasnoushad/blog-website

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 

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.
    cd backend
  2. Create a virtual environment:
    python3 -m venv .venv
  3. Activate the virtual environment:

    linux command

    . ./.venv/bin/activate
  4. Install the required dependencies:
    pip install -r requirements.txt
  5. Run the following command:
    flask --app app.py run
  6. The backend server will start running on http://localhost:5000.

Run frontend

  1. Go to the frontend directory.
    cd frontend
  2. Install the required dependencies:
    npm install
  3. Run the following command:
    npm run dev
  4. The frontend server will start running on http://localhost:5173.

About

A blog website made with ReactJS as frontend and Python Flask as backend.

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Sponsor this project

  •