achilleasblekos /
recipe-app-api
Recipe API Project - Create an advanced REST API with Python, Django REST Framework and Docker using Test Driven Development (TDD)
Loading repository data…
ikostan / repository
Create an advanced REST API with Python, Django REST Framework and Docker using Test Driven Development (TDD)
About
Main Objectives
Tech Topics Covered
Icons Library
Official Web Resources
Additional Resources
Tech Issues and Problem Solving
Django App:
The advanced course on how to Build a Backend REST API using Python, Django (2.0), Django REST Framework (3.9), Docker, Travis CI, Postgres and Test Driven Development!
The original course content was created by Mark Winterbottom.
The first thing you should do when you install Git is to set your user name and email address. This is important because every Git commit uses this information, and it’s immutably baked into the commits you start creating:
git config --global user.name "John Doe"
git config --global user.email johndoe@example.com
For more info please check here
For more info please see Enable Pytest for you project
cd C:\Users\superadmin\Desktop\Python\CodinGame
pip install virtualenv
virtualenv venv --python=python
The package is called python-pip. First check if it's already installed: pacman -Qs python-pip
If there is no output after running the above command, that means that the package is not installed. In order to install it, run: sudo pacman -Syu python-pip
In order to install virtualenv run: pip install virtualenv
You also need to run sudo /usr/bin/easy_install virtualenv which puts it in /usr/local/bin/.
sudo apt-get install python3-pip
sudo pip3 install virtualenv
virtualenv venv
you can use any name insted of venv
virtualenv -p /usr/bin/python2.7 venv
source venv/bin/activate
source venv/bin/activate.fish
deactivate
virtualenv -p python3 myenv
python3 -m venv myenv
In a newly created virtualenv there will be a bin/activate shell script. For Windows systems, activation scripts are provided for CMD.exe and Powershell.
Any application typically has a set of dependencies that are required for that application to work. The requirements file is a way to specify and install specific set of package dependencies at once. Use pip’s freeze command to generate a requirements.txt file for your project:
pip freeze > requirements.txt
If you save this in requirements.txt, you can follow this guide: PyCharm - Manage dependencies using requirements.txt, or you can:
pip install -r requirements.txt
Step by step:
# Step 1: Update your repositories
sudo apt-get update
# Step 2: Install pip for Python 3
sudo apt-get install build-essential libssl-dev libffi-dev python-dev
sudo apt install python3-pip
# Step 3: Use pip to install virtualenv
sudo pip3 install virtualenv
# Step 4: Launch your Python 3 virtual environment, here the name of my virtual environment will be `venv`
virtualenv -p python3 venv
# Step 5: Activate your new Python 3 environment. There are two ways to do this
. venv/bin/activate # or source env3/bin/activate which does exactly the same thing
# you can make sure you are now working with Python 3
python -- version
# this command will show you what is going on: the python executable you are using is now located inside your virtualenv repository
which python
# Step 6: code your stuff
# Step 7: done? leave the virtual environment
deactivate
docker, docker.io, or docker-engine. If these are installed, uninstall them:sudo apt-get remove docker docker-engine docker.io containerd runc
apt package index and install packages to allow apt to use a repository over HTTPS:sudo apt-get update
sudo apt-get install \
apt-transport-https \
ca-certificates \
curl \
gnupg-agent \
software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
# Verify that you now have the key with the fingerprint
sudo apt-key fingerprint 0EBFCD88
stable repository:sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
(lsb_release -cs) \
stable"
apt package index, and install the latest version of Docker Engine and container:sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io
hello-world image:sudo docker run hello-world
This command downloads a test image and runs it in a container. When the con
Selected from shared topics, language and repository description—not editorial ratings.
achilleasblekos /
Recipe API Project - Create an advanced REST API with Python, Django REST Framework and Docker using Test Driven Development (TDD)
tawounfouet /
Mastering Django and the Django Rest Framework. Creating a blog and an accompanying API using industry-standard tools and software packages
DanSam5K /
Create an Advanced REST API with Python, Django REST Framework and Docker using Test Driven Development(TDD)
tanjingjing123 /
Create an advanced REST API with Python, Django REST Framework and Docker using Test Driven Development (TDD)
fgarcialainez /
Create an advanced REST API with Python, Django REST Framework, Travis CI, Postgres and Docker using Test Driven Development (TDD).
aa10402tw /
Create an advanced REST API with Python, Django REST Framework and Docker using Test Driven Development (TDD)