Skip to content

Renovus-Tech/solarec-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Tests Coverage CLA assistant

SolaREC

Data API

Setting up the Environment

To set up the environment for SolaREC's data API, follow these steps:

  • Create a virtual environment: python -m venv .venv.
  • Change the source to the virtual environment: source .venv/bin/activate.

Database Configuration

  • Locate the database.ini file in the /app directory of the project.
  • In the database.ini file, you'll find a section for PostgreSQL with the following parameters:
[postgresql]
host=
database=
user=
password=

Dependencies installation

  • Install the required dependencies from requirements.txt:
pip install -r requirements.txt

Running the API

To run the API, follow these steps:

  • Navigate to the /app directory.
  • Execute the following command: uvicorn main:app --reload.

API Endpoints

After starting the API, visit <url>/docs to access the API documentation and explore its endpoints.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published