Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/platzi-master-c8/gethired-jobplacement-ratings-backend

🌟Backend repository for the job placement cell in which we will perform the business logic of the defined Ratings squad.
https://github.com/platzi-master-c8/gethired-jobplacement-ratings-backend

api-rest docker docker-compose fastapi ngnix postgresql pydantic python sqlalchemy uvicorn

Last synced: about 1 month ago
JSON representation

🌟Backend repository for the job placement cell in which we will perform the business logic of the defined Ratings squad.

Awesome Lists containing this project

README

        

# Gethired Jobplacement Ratings Backend

🌠 Backend repository for the job placement cell in which we will perform the business logic of the defined Ratings squad.
## πŸš€Getting Started

The application is built with this stack:
- [Docker](https://www.docker.com/) πŸ‹
- [Python](https://www.python.org/) 🐍
- [FastAPI](https://fastapi.tiangolo.com/) πŸš€
- [Pydantic ](https://pydantic-docs.helpmanual.io/) πŸ’―
- [PostgreSQL](https://www.postgresql.org/) 🐘
- [SQLAlchemy](https://www.sqlalchemy.org/) βš™οΈ

To get started you just need to download docker on your machine, I leave the link right here. ➑️ [Docker](https://www.docker.com/get-started "Docker").

## πŸ§‘β€πŸ’» Database access configuration using the .env file
1. First, Create in the root folder of the project a file named `.env` πŸ“‚.
2. Now configure your `.env` with this environment variables with the local credentials of the project below. ⬇️.

```
DB_CONNECTION=postgresql
DB_USERNAME=postgres
DB_PASSWORD=postgres
DB_HOST=postgresql
DB_DATABASE=jobplacement-ratings
DB_PORT=5432
```

## 🐳 Run the Project with Docker
You can run the following command to buil the image.

```
$ docker-compose build
```

Once the image is built, run the container:
```
$ docker-compose up -d
```

If you want to be faster in launching the project you can use the following command to perform the above two steps in one.

```
$ docker-compose up --build
```
## πŸ“‘ 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).

![Jobplacement-ratings](docs/img/job-placement-api-documentation.png)