Giter Site home page Giter Site logo

hngstagetwo's Introduction

An API that allows you to perform CRUD operations on a person resource

The hosted version of this API is available here: https://hngstagetwo-wpel.onrender.com, However, if you would like to run this on your local machine, follow the guide below.

Requirements

  1. Python: This project is built with FastAPI which is a python framework. Run this command python --version to check if you have Python installed on your machine. If you dont have python, download and install Python on your machine here: https://www.python.org/downloads/.

  2. Database: PostgreSQL was used for this project. If you don't have it installed, download and install Postgres here: https://www.postgresql.org/download/

SETUP

1. Clone the repository
git clone https://github.com/Ideeee/hngstagetwo.git
2. Create a virtual environment
 python3 -m venv {the-name-of-your-virtualenv}
3. Activate the virtual environment using .\env\scripts\Activate.ps1 on Windows or source ./env/bin/Activate on Linux
4. Copy the contents of env.sample into your .env file and populate it with your values
5. Install the project dependencies
pip install -r requirements.txt
6. Run the database migrations
alembic upgrade head
7. Start the development server
 uvicorn main:app --reload

The application should start on localhost:8000

8. Navigate to localhost:8000/docs in your browser for the interactive api documentation

hngstagetwo's People

Contributors

ideeee avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.