My Diary API is a an application built with Flask(A micro web framework for python) with a REST approach to help users curate life's moments. It serves as the backend architecture powering a full featured client facing application running on here.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
The followng are softwares you'll need to have installed and running on your system before attemping to get started with the project
- Python >= 3.8
- Pipenv >= 2018.1.26
- PostgreSQL >= 9.x
- Git
To get the application running on your local environment, run the following commands
- Create a directory (e.g my-diary-api) and cd into it
- Run `git clone https://github.com/jesseinit/my-diary-flask.git .` to pull the code from Github to your machine
- Create a `.env` file populating it with actual values using the structure in the `.env.sample` file
- Ensure that you have created a database for development and test environments
- Run
pipenv shell
to activate the virtual environment(if its not already activated) - Run
pipenv install
to install the application's dependencies - Run
python manage.py runserver
to start the development server
- Ensure your're in the virtual environment or run
pipenv shell
to activate it. - Run the test by running
pipenv run pytest
on the terminal or simplymake tests
if make is enabled on your pc
This api has been successfully deployed and surrently running on an EC2 instance. I'll update address shortly
- Flask - The fast and light-weight python micro-framework
- Pipenv - A super configurable python dependency management cli app
- PostgreSQL - A production-ready relational database system emphasizing extensibility and technical standards compliance.
- Jesse Egbosionu - My Works
- Hat tip to anyone whose code was used
- Inspiration
- etc