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
$ git clone https://github.com/cmdtorch/portfolio_api
or download archive
$ pip install -r requirements.txt
Migrations
python manage.py migrate
$ uvicorn portfolio.asgi:fastapp --port 8000 --reload
...
Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit)
...
Clone project as described above.
Clone file .env-example
with name .env
and set your data in it
$ cp .env-example .env
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.
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.