Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/vikas-ukani/ecommerce-fastapi

An Ecommerce application backend build in Fast API.
https://github.com/vikas-ukani/ecommerce-fastapi

Last synced: about 1 month ago
JSON representation

An Ecommerce application backend build in Fast API.

Awesome Lists containing this project

README

        


FastAPI



FastAPI framework, high performance, easy to learn, fast to code, ready for production

## Installation

### Create your vertual environment

```bash
$ python -m venv env
```

- Activate vertual environment
```bash
$ source env/bin/activate
```

### Install dependencies from requirement.txt file.

```bash
pip install -r requirments.txt
```

### Run server

```bash
python3 main.py
```

---
## Docker
### Build Docker
```bash
docker build -t fast-commerce .
```

```bash
docker run fast-commerce
```

### Interactive API docs

Now go to http://127.0.0.1:8000/docs.

You will see the automatic interactive API documentation (provided by Swagger UI):

![Swagger UI](https://fastapi.tiangolo.com/img/index/index-01-swagger-ui-simple.png)