Skip to content

ruliancruz/calendario-simples

Repository files navigation

Calendário Simples


Simple and a bit overengineered calendar web page

Table of Contents

🔹 What The Application Can Do

🔹 Dependencies

🔹 How to Run the Application

🔹 How to Run Tests

What the Application Can Do

✔️ Show a page with a calendar of the current month

✔️ Show the current year and time

✔️ Show a greeting message

Application Image

image

Dependencies

This application was made to run with Docker, and the how to run instructions is written to be used with it, so just use Docker, because everything you need will be installed on the containers. But if you want to run this project without Docker anyway, you can use a WampServer or similar:

⚠️ PHP 8.3

⚠️ Apache

⚠️ Cypress 13.14.2

How to Run the Application

After configuring Docker, clone this repository:

git clone /~https://github.com/ruliancruz/calendario-simples.git

After that, all you need to do to run the application is starting Docker containers:

docker compose up --build

It will start test container too, if want only the main application, run it instead:

docker compose up --build app

Now you can access the application through http://localhost:8000/ route.

How to Run Tests

This project has system tests that is run on Cypress.

It's recommended to run the tests inside the test container on Docker. To do it you just need to run:

docker compose up --build cypress

When running it very often, you may come across the max depth exceeded error, you can solve it cleaning your docker image list, so if it happens, try to run these commands:

docker image prune

Or:

docker rmi -f $(docker images -q)