-
Clone the repository:
git clone https://github.com/softwareVirus/micro-blog cd micro-blog
-
Go to server directory
cd server
-
Create and activate a virtual environment:
python -m venv venv ./venv/Scripts/activate # On Windows
-
Install dependencies:
pip install -r requirements.txt
-
After that, create new terminal and go to ./your-path/micro-blog/client directory
npm install
-
Go to server directory
cd server
-
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. -
Run the Flask application:
flask --app ./app/app.py run
-
Run the Vue application:
cd client npm run serve