https://github.com/ppcamp/sigaa-tcc-ahp-form
Repository containing the form (site) created to sigaa-scrapping-analysis
https://github.com/ppcamp/sigaa-tcc-ahp-form
Last synced: about 1 year ago
JSON representation
Repository containing the form (site) created to sigaa-scrapping-analysis
- Host: GitHub
- URL: https://github.com/ppcamp/sigaa-tcc-ahp-form
- Owner: ppcamp
- License: mit
- Archived: true
- Created: 2020-10-03T16:23:14.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-07-18T18:28:42.000Z (almost 5 years ago)
- Last Synced: 2025-03-03T05:43:41.890Z (over 1 year ago)
- Language: Vue
- Homepage: http://www.sigaaanalise.xyz/
- Size: 2.12 MB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
sigaa-front
This is a multirepo which contains an [api](ahp-api/README.md) used to send emails, written in
nestjs and an [interface](ahp-form/README.md) written in vuetify (vue framework)
There's an **github action** working over every commit of this repo. See more about by clicking
[here](https://docs.github.com/en/actions)
Why is this a monorepo?
R.: I've decided to use a monorepo due to 2 factors:
- The api is a very lightweight, has only one controller so, we don't need a repo just to this.
> Another way to create the interface could be using nextjs framework, which problably handle with my api problem.
- The actions in github, usually took some memory, and due the fact that I'm using aws, the best way to do so is creating only one action
Why don't use multiples branches and configure actions for each one?
R.: Because, when doing so, I was getting too much problem to handle with action orders.
> One approach to this, is creating 3 branches (front, back, dev), where dev should (I)compile correctly
> front, (II) move the build content to another place, (III) and compile the api then.
---
However, the github actions must be iniatlized, one way of do that, is creating a serivice:
1. Create a file that will be used by the service
```bash
sudo touch /etc/systemd/system/gh-actions.service
```
2. Edit the file
[Unit]
Description=Github action services
After=network.target
StartLimitIntervalSec=0
[Service]
Type=simple
Restart=always
RestartSec=1
User=ubuntu
ExecStart=/home/ubuntu/actions-runner/run.sh
[Install]
WantedBy=multi-user.target
1. Configure the service
```bash
# autostart
sudo systemctl enable gh-actions
# start
sudo systemctl start gh-actions
```
With configuration above, your serve will automatically lauch github actions