Category : testing

this is my first project with Django and also my first time using Docker. So far I’m really enjoying both of them but I’m facing a problem I couldn’t resolve after a week. I followed this tutorial to build my project : https://medium.com/swlh/setting-up-a-secure-django-project-repository-with-docker-and-django-environ-4af72ce037f0 So far, my project structure looks like like this : MyProject ├── ..

Read more

I have a Dockerfile like this: FROM python:3.9 WORKDIR /app RUN apt-get update && apt-get upgrade -y RUN curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/install-poetry.py | python – ENV PATH /root/.local/bin:$PATH COPY pyproject.toml poetry.lock Makefile ./ COPY src ./src COPY tests ./tests RUN poetry install && poetry run pytest && make clean CMD ["bash"] As you can see that ..

Read more

I have created a spring boot app with the following setup: pom.xml: <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.4.4</version> <relativePath/> <!– lookup parent from repository –> </parent> <groupId>com</groupId> <artifactId>ticket</artifactId> <version>0.0.1-SNAPSHOT</version> <name>ticket</name> <description>ticketing microservice</description> <properties> <java.version>1.8</java.version> </properties> <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-jpa</artifactId> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> <dependency> <groupId>org.postgresql</groupId> <artifactId>postgresql</artifactId> <scope>runtime</scope> ..

Read more