Skip to content

anicioalexandre/wall_app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

92 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wall_app

Linkedin Badge

Description

This application was built in a modular architecture allowing greater flexibility and high capacity to reuse components within the project components. In it's main structure we can find backend and frontend apps that are transformed in containers by using docker.

Prerequisites

To run this project you will need to install both Docker Engine and Docker Compose.

Installation

After downloading this repository, you can build the images and start the containers by running:

docker-compose up --build

note: use the flag --build when starting the containers for the first time only.

To stop containers and removes containers, networks, volumes, and images created by up, you can run:

docker-compose down -v

After starting the containers you should have both Front-End and Back-End apps running at:

Tests

To run all tests on the frontend app, you must run:

docker-compose exec frontend npm test

To run all tests on the backend app, you must run:

docker-compose exec backend python manage.py test

note: use exec if the container is actually running, otherwise use run

Development notes

In this project configuration, when you start the containers, everything the apps need will be on the image of each container (wall_app_db, wall_app_backend and wall_app_frontend). Just for a better development experience (avoiding module not found lint errors), I recommend to install the packages of each app locally in your machine. For example:

cd frontend
npm install

Happy hacking! :)