Skip to content

API application for my portfolio site. Developed with Django and FastAPI frameworks.

License

Notifications You must be signed in to change notification settings

cmdtorch/portfolio_api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

My Portfolio App

This is the API for my portfolio site. It is developed using the FastApi-Django frameworks. The application supports information about:

  • Personal
  • Testimonials
  • Technologies
  • Experience/Education
  • Projects
  • Contacts

Front-End Source Code: https://github.com/ilgarabdullazade/nuxt3-my-portfolio

Full-Stack Source Code: https://github.com/cmdtorch/portfolio-fullstack-docker


Installation

Clone repository

$ git clone https://github.com/cmdtorch/portfolio_api

or download archive

Install packages

$ pip install -r requirements.txt

Until run

Migrations

python manage.py migrate

Run

$ uvicorn portfolio.asgi:fastapp --port 8000 --reload
...
Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit)
...

Docker

Clone project as described above.

.env file

Clone file .env-example with name .env and set your data in it

$ cp .env-example .env

Build image and run container

Run inside project directory for create image:

$ docker build -t portfolio-api .

then run container with your .env file:

$ docker run -dp 127.0.0.1:8000:80 --name portfolio-api --env-file .env portfolio-api

This binds port 80 of the container to TCP port 8000 on 127.0.0.1 of the host machine.

Create django admin user

The docker exec command runs a new command in a running container.

$ docker exec -it portfolio-api sh

and run command for create admin:

$ python manage.py createsuperuser

Ctrl+D for return to main.

About

API application for my portfolio site. Developed with Django and FastAPI frameworks.

Resources

License

Stars

Watchers

Forks

Packages

No packages published