- Clone this repository with the command
git clone https://github.com/jeremyalv/vlecture-api.git
- Make sure to enter the directory using
cd vlecture-api
- Create a virtual environment using
python -m venv env
- Run the virtual environment using
source env/bin/activate
for Mac andenv\Scripts\activate.bat
for Windows - Install the required modules with
pip install -r requirements.txt
- Run the app using
make dev
or.\build.bat
- Make sure get in the vlecture-api directory using
cd vlecture-api
- Run your virtual environment using
source env/bin/activate
for Mac andenv\Scripts\activate.bat
for Windows - Keep your project up-to-date by installing the newest modules using
pip install -r requirements.txt
- Run the app using
make dev
or.\build.bat
- Build Docker image:
docker build -t vlecture-api .
- Run image on container port 8080:
docker run -p 8080:8080 vlecture-api
- Swap the environment variable into
test
environment (bash scripts/swap-env.sh test
) - Run
tox
and you'll see thatpytest
will automatically collect and run all your tests!