This web application project demonstrate a Listing of all Historical Stock Price Items extracted from an external API. This project is built with Python (Django Framework). This application also has a pagination facility where each page containing 100 listing entries.
- Clone the repository
$ git clone https://github.com/jeet-khondker/historical-stock.git
$ cd historical-stock
- Install and create a virtual environment and activate it
$ pip3 install virtualenv
$ virtualenv historicalstock-venv
$ source historicalstock-venv/bin/activate
- Install the dependencies
(historicalstock-venv)$ pip3 install -r requirements.txt
Note the (historicalstock-venv)
in front of the prompt. This indicates that this terminal session operates in a virtual environment set up by virtualenv
.
-
Navigate to https://financialmodelingprep.com/developer/docs/ to get your API Key. If you are not a registered user, please sign up and get the API Key.
-
Create a
.env
file in the root directory and paste the following code in the file.
API_KEY = "your-api-key"
- Migrate the database
(historicalstock-venv)$ python manage.py migrate
- Run the server
(historicalstock-venv)$ python manage.py runserver
- Open
http://127.0.0.1:8000/
in the browser.
Python (Django Framework), HTML5, CSS3
Jeet Z. H. Khondker, Full Stack Web Developer