.env.dev
for the backend to work as expected.Navigate to the backend directory:
cd Article-backend
Environment Setup:
Copy the sample environment file:
cp .env.sample .env.dev
Open .env.dev
and replace placeholder values (e.g., SECRET_KEY
, DATABASE_URL
, etc.) with your actual secret keys and credentials.
Create a virtual environment and activate it:
Create a virtual environment:
python -m venv venv
Activate the virtual environment:
For Windows:
.\venv\Scripts\activate
For macOS/Linux:
source venv/bin/activate
Install required packages:
pip install -r requirements.txt
Run the backend server:
python main.py
Navigate to the frontend directory:
cd Article-frontend
Install dependencies:
npm install
Run the frontend server:
npm start
Environment Setup:
Navigate to the Article-backend
directory:
Copy the sample environment file:
cp .env.sample .env.dev
Open .env.dev
and replace placeholder values (e.g., SECRET_KEY
, DATABASE_URL
, etc.) with your actual secret keys and credentials.
Run Docker:
Return to the root directory:
cd ..
Run Docker Compose with the following command:
docker-compose up --build