This is a Flask project for managing risks. It includes both the backend API and a frontend application.
- Python 3.x
- MongoDB
- Node.js (for frontend development)
- Clone the repository:
git clone https://github.com/alejomjc/risks-manager.git- Navigate to the project directory:
cd risks-manager- Create a virtual environment and activate it:
python3 -m venv venv
source venv/bin/activate # On Windows, use `venv\Scripts\activate`- Install the required Python packages:
pip install -r requirements.txt- Set up MongoDB:
Make sure you have MongoDB installed locally. Create a new database named risksmanagerdb.
- Run the Flask application:
python app.py- Navigate to the frontend directory:
cd frontend- Install frontend dependencies and start the frontend server:
npm install
npm startFor access to first time, login in the app with the following credentials. When you in, change the password immediately for more security.
username: admin
password: adminThis action must be done twice, the first creates the administrator user and generates the example data for risks. and the second, log in.
- Access the API at http://localhost:5000
- Access the frontend application at http://localhost:3000
- Access the Swagger documentation at http://localhost:5000/apidocs
- Fork the repository.
- Create a new branch for your feature: git checkout -b feature/new-feature.
- Commit your changes: git commit -m 'Add new feature'.
- Push to the branch: git push origin feature/new-feature.
- Submit a pull request.
This project is licensed under the MIT License.