https://github.com/ruliancruz/calendario-simples
Simple and a bit overengineered calendar web page
https://github.com/ruliancruz/calendario-simples
apache css cypress docker docker-compose html php pt-br
Last synced: 6 months ago
JSON representation
Simple and a bit overengineered calendar web page
- Host: GitHub
- URL: https://github.com/ruliancruz/calendario-simples
- Owner: ruliancruz
- License: unlicense
- Created: 2024-09-07T18:14:40.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-09-09T06:54:04.000Z (almost 2 years ago)
- Last Synced: 2025-04-05T19:20:38.219Z (about 1 year ago)
- Topics: apache, css, cypress, docker, docker-compose, html, php, pt-br
- Language: PHP
- Homepage:
- Size: 23.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Calendário Simples
Simple and a bit overengineered calendar web page
## Table of Contents
:small_blue_diamond: [What The Application Can Do](#what-the-application-can-do)
:small_blue_diamond: [Dependencies](#dependencies)
:small_blue_diamond: [How to Run the Application](#how-to-run-the-application)
:small_blue_diamond: [How to Run Tests](#how-to-run-tests)
## What the Application Can Do
:heavy_check_mark: Show a page with a calendar of the current month
:heavy_check_mark: Show the current year and time
:heavy_check_mark: Show a greeting message
### Application Image

## Dependencies
This application was made to run with [**Docker**](https://www.docker.com/), 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**](https://www.wampserver.com/) or similar:
:warning: [PHP 8.3](https://www.php.net/)
:warning: [Apache](https://www.apache.org/)
:warning: [Cypress 13.14.2](https://www.cypress.io/)
## 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**](https://www.cypress.io/).
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)
```