# MyRepository 📚
A template that gathers the minimal structure of my repository.
## 🚀 Features
- SIMPLE REST API
- COOK APPLE PIE
## 🛠 Installation
```bash
brew install my-repository
```
### 🏗 Install from Source
```sh
git clone https://github.com/HidemaruOwO/MyRepository.git
cd MyRepository
make -j8
install -Dm0755 -t "/usr/local/bin/" "dist/builded-binary"
```
- Arch Linux
```sh
git clone https://github.com/HidemaruOwO/MyRepository.git
cd MyRepository
makepkg -si
```
## 🎯 Usage
```bash
# running local host 3000
MyRepository
```
- To run the service automatically, you can set it up with `systemd`:
```sh
# run as a service.
sudo systemctl enable --now MyRepository.service
# if u alerdy using interception.
sudo systemctl restart MyRepository.service
```
MyRepository.service file
```service
[Unit]
Description=My Repository Web API
After=network.target
[Service]
#User=user
#WorkingDirectory=/home/user/app
ExecStart=/usr/local/bin/MyRepository
Restart=always
StandardOutput=journal
StandardError=journal
Environment=PATH=/usr/bin:/usr/local/bin
[Install]
WantedBy=multi-user.target
```