-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #36 from erland-syafiq/docs
Add more thorough documentation (including images)
- Loading branch information
Showing
9 changed files
with
323 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# ⚙️ Environment Variables File | ||
|
||
This file defines environment variables used by VTMUNC. Note, that this env file is seperate from the environment variables for GitHub, where you need to paste in this environment variable file as a variable called ENV_FILE. Find out more from the [deployment docs](./deployment.md#-step-7-set-environment-variables-in-github) | ||
|
||
## Important security notice | ||
Never, commit .env files to any remote repository, including GitHub. Only share this environment variable with trusted personell. | ||
|
||
## Environment Variables in .env file | ||
| Variable Name | Description | Example Value | | ||
|---|---|---| | ||
| AWS_DYNAMODB_ACCESS_KEY_ID | Your AWS DynamoDB access key ID. Refer to "Obtaining AWS Credentials Securely" to obtain this value. | `JKSOKJSDO` (fake) | | ||
| AWS_DYNAMODB_SECRET_ACCESS_KEY | Your AWS DynamoDB secret access key. Refer to "Obtaining AWS Credentials Securely" to obtain this value. | `sb0lasoiwkdouwedfes` (fake) | | ||
| AWS_DEFAULT_REGION | The default AWS region your application will use | `us-east1` | | ||
| BACKEND_URL | The URL of your backend API | `localhost:3000/api` | | ||
| USERNAME | The admin username | `randomemail@gmail.com` (fake) | | ||
| PASSWORD | The admin password | `randOMPassWordForMUN&283` (fake) | | ||
| JWT_SECRET | A secret key used for generating JSON Web Tokens (JWTs) for authentication. | `okmasfq;eiuidf` (fake) | | ||
|
||
## Obtaining AWS Credentials Securely | ||
|
||
1. Go to the AWS Management Console and navigate to the IAM service. | ||
2. In the IAM service, select "Users" from the navigation pane. | ||
3. Click on "Add user". | ||
4. Provide a name for the user and choose "Programmatic access" as the access type. | ||
5. Deselect "Attach existing policies directly" and click on "Next: Permissions". | ||
6. In the search bar, type "AdministratorAccess" and select the policy. | ||
7. Click on "Next: Review". | ||
8. Review the details of the user and click on "Create user". | ||
9. Download the credentials (access key ID and secret access key) for the newly created user. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
# 📂 Project Overview | ||
|
||
## Directory Structure | ||
|
||
The project repository is organized into several directories, each serving a specific purpose. Below is an overview of the main directories and their contents: | ||
|
||
``` | ||
. | ||
├── .git | ||
├── .github | ||
├── LICENSE | ||
├── README.md | ||
├── aws | ||
├── docs | ||
├── dotnet-archive | ||
├── reverse-proxy | ||
└── site | ||
``` | ||
|
||
### 1. `.git` | ||
|
||
This directory contains the Git version control system files. It tracks changes in the project files and manages the history and collaboration features of Git. | ||
|
||
### 2. `.github` | ||
|
||
This directory holds GitHub-specific configuration files, including GitHub Actions workflows.. The workflows defined here automate tasks such as testing and deployment. | ||
|
||
### 3. `LICENSE` | ||
|
||
This file contains the license under which the project is distributed. It specifies the terms and conditions for using, copying, modifying, and distributing the software. | ||
|
||
### 4. `README.md` | ||
|
||
The README file provides an overview of the project, including instructions on how to set up, build, and run the application. It serves as the first point of reference for anyone interested in the project. | ||
|
||
### 5. `aws` | ||
|
||
This directory includes scripts and configuration files needed for setting up and managing the AWS infrastructure. Specifically, it contains the EC2 instance setup scripts used to initialize the server environment. | ||
|
||
### 6. `docs` | ||
|
||
The `docs` directory contains documentation related to the project. This can include design documents, user guides, developer notes, and other relevant documentation that aids in understanding and contributing to the project. | ||
|
||
### 7. `dotnet-archive` | ||
|
||
This directory holds the old version of the website, which was built using ASP.NET. It serves as an archive for the legacy codebase, allowing reference and potential reuse of previous implementations. | ||
|
||
### 8. `reverse-proxy` | ||
|
||
The `reverse-proxy` directory contains configuration files for the reverse proxy setup. This is used to manage incoming traffic and route it to the appropriate services, enhancing security and performance. | ||
|
||
### 9. `site` | ||
|
||
The `site` directory contains the code for the current version of the website, built using the NEXT.js framework. This includes all the components, pages, styles, and logic required for the web application. | ||
|
||
--- | ||
|
||
By maintaining a well-organized directory structure, the project ensures clarity and ease of navigation for developers and contributors. Each directory has a clear purpose, facilitating efficient development and management of the project. |
Oops, something went wrong.