This repository contains the backend for the HeReFaNMI web application, built with Python Flask. The application is containerized using Docker for easy deployment and scalability.
Clone this repository to your local machine and navigate into the project directory:
- git clone https://github.com/HeReFanMi/Backend.git
- cd /project
-
Try to creat a new firebase project, download the firebase json file which contains the configuration of your database, and add it to the root of this project.
-
in the dockerfile, don't forget to rename the json file to your firebase json file by adding the next line :
ADD your_firebase_json_file_name.json .
Create a .env file in the root directory and add your API keys and other environment-specific variables. Use the following format:
API_KEY=your_openai_api_key
FIREBASE_KEY=your_firebase_json_file_name.json
DATABASE_URL=your_firebase_database_url
- docker build -t backend .
- docker run --env-file .env -p 10000:10000 backend
Once the container is running, access the Flask application: Local Access: http://127.0.0.1:10000
You can find the image of this backend in the docker hub following the link of the repository below :
https://hub.docker.com/repository/docker/abdelaliichou/backend/general