Skip to content

Commit

Permalink
.eslintignore deleted and INSTALLATION.md updated
Browse files Browse the repository at this point in the history
  • Loading branch information
sahitya-chandra committed Jan 3, 2025
1 parent 2c61c48 commit 325ec7d
Show file tree
Hide file tree
Showing 4 changed files with 85 additions and 80 deletions.
8 changes: 0 additions & 8 deletions .eslintignore

This file was deleted.

10 changes: 6 additions & 4 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,11 @@
"**/*.less",
"**/*.json",
"**/*.svg",
"docs/docusaurus.config.ts",
"docs/sidebars.ts",
"docs/src/**",
"docs/blog/**"
"src/components/CheckIn/tagTemplate.ts",
"package.json",
"package-lock.json",
"tsconfig.json",
"docs/**",
"examples/**"
]
}
79 changes: 79 additions & 0 deletions INSTALLATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,16 @@ This document provides instructions on how to set up and start a running instanc
- [Installation using Docker](#installation-using-docker)
- [Prerequisites](#prerequisites-1)
- [Development Setup](#development-setup)
- [Talawa-Admin Service Setup Guide](#talawa-admin-service-setup-guide)
- [Prerequisites](#prerequisites-2)
- [Service Configuration](#service-configuration)
- [1. **Copy the `talawa_admin.service` file**](#1-copy-the-talawa_adminservice-file)
- [2. **Verify the CODEROOT Path**](#2-verify-the-coderoot-path)
- [3. **Set the Correct Working Directory**](#3-set-the-correct-working-directory)
- [4. **Ensure the `.env` File Exists**](#4-ensure-the-env-file-exists)
- [5. **Adjust User and Group**](#5-adjust-user-and-group)
- [Steps to Enable and Manage the Service](#steps-to-enable-and-manage-the-service)
- [Troubleshooting](#troubleshooting)

<!-- tocstop -->

Expand Down Expand Up @@ -380,3 +390,72 @@ If you don't want this hook to run, you can manually opt out of this using the `
<br/>
```
# Talawa-Admin Service Setup Guide
This guide outlines the steps to set up and manage the Talawa-Admin service on a Linux server using `systemd`.
### Prerequisites
- Firstly, You should have locally setup the Talawa-Admin repo using [Setting up this repository](#setting-up-this-repository)
- Ensure **Node.js** and **npm** are correctly installed and available for the specified user and group.
- It’s recommended to use **nvm** (Node Version Manager) for better management of different Node.js versions.
---
### Service Configuration
#### 1. **Copy the `talawa_admin.service` file**
- Place the `talawa_admin.service` file in the appropriate systemd directory based on your Linux distribution:
- For most distributions: `/etc/systemd/system/`
- For systems using `systemd`, this will be the default directory.
#### 2. **Verify the CODEROOT Path**
- Ensure that the `CODEROOT` environment variable matches the absolute path to the Talawa-Admin code directory.
#### 3. **Set the Correct Working Directory**
- Always use the absolute path for the `WorkingDirectory`. Do **not** use `$CODEROOT` in the `WorkingDirectory` field.
#### 4. **Ensure the `.env` File Exists**
- Verify that the path in the `EnvironmentFile` line points to a valid `.env` file located in the root directory of the Talawa-Admin repository.
#### 5. **Adjust User and Group**
- Modify the `User` and `Group` settings to match the user account intended to run the service.
---
### Steps to Enable and Manage the Service
1. **Reload the systemd daemon** to apply changes:
```bash
sudo systemctl daemon-reload
```
2. **Start the Talawa-Admin Service**:
```bash
sudo systemctl start talawa_admin.service
```
3. **Stop the Talawa-Admin Service**:
```bash
sudo systemctl stop talawa_admin.service
```
4. **Enable the Service to Start on Boot**:
```bash
sudo systemctl enable talawa_admin.service
```
---
### Troubleshooting
- If you encounter any issues, you can check the status and logs of the service:
```bash
sudo systemctl status talawa_admin.service
sudo journalctl -u talawa_admin.service
```
---
By following these steps, you can set up and manage the Talawa-Admin service efficiently on your Linux server.
68 changes: 0 additions & 68 deletions examples/linux/Daemon_Service_Setup.md

This file was deleted.

0 comments on commit 325ec7d

Please sign in to comment.