Skip to content

softwareVirus/micro-blog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

86 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Micro-blog

Table of Contents

Installation

  1. Clone the repository:

    git clone https://github.com/softwareVirus/micro-blog
    cd micro-blog
  2. Go to server directory

    cd server
  3. Create and activate a virtual environment:

    python -m venv venv
    ./venv/Scripts/activate  # On Windows
  4. Install dependencies:

    pip install -r requirements.txt
  5. After that, create new terminal and go to ./your-path/micro-blog/client directory

    npm install

Usage

Server

  1. Go to server directory

    cd server
  2. Create a .env file in the server directory of your project with the following content:

    MONGODB_CONNECTION_STRING=your_mongodb_connection_string

    Replace your_mongodb_connection_string with your actual MongoDB connection string.

  3. Run the Flask application:

    flask --app ./app/app.py run

Client

  1. Run the Vue application:

    cd client
    npm run serve