291st/README.md

77 lines
1.5 KiB
Markdown
Raw Normal View History

2022-09-20 13:57:30 -04:00
# 291st JTF
2022-05-09 12:02:08 -04:00
2023-07-27 13:04:10 -04:00
> "Putting the Damned to Rest"
![Skull Sword and Globe Emblem](./src/assets/img/logo.png)
2023-07-27 21:56:26 -04:00
This is the clan website for the "291st Joint Task Force"
2022-09-20 13:57:30 -04:00
## Table of Contents
2023-07-27 21:43:11 -04:00
- [291st JTF](#291st-jtf)
- [Table of Contents](#table-of-contents)
2023-07-27 21:55:12 -04:00
- [Demo](#demo)
2023-07-27 21:43:11 -04:00
- [Stack](#stack)
- [Setup](#setup)
- [Development](#development)
2023-07-27 22:02:30 -04:00
- [Production](#production)
2023-07-27 21:43:11 -04:00
- [Cheatsheet](#cheatsheet)
2023-07-27 21:55:12 -04:00
## Demo
[https://291st.ca](https://291st.ca)
2023-07-27 21:43:11 -04:00
## Stack
| Technology | Version |
|------------|---------|
| Node | 16 |
| Angular | 14 |
| Docker | |
2022-05-09 12:02:08 -04:00
2022-09-20 13:57:30 -04:00
## Setup
<details>
2023-07-27 21:43:11 -04:00
<summary>
2023-07-27 22:02:30 -04:00
<h3 id="development" style="display: inline">
Development
</h3>
2023-07-27 21:43:11 -04:00
</summary>
2022-05-09 12:02:08 -04:00
2023-07-27 21:43:11 -04:00
#### Prerequisites
- [NodeJS](https://nodejs.org/en/)
#### Instructions
2022-09-20 13:57:30 -04:00
1. Install the dependencies: `npm install`
2. Start the Angular server: `npm run start`
2023-07-27 21:43:11 -04:00
3. Open [http://localhost:4200](http://localhost:4200)
2022-09-20 13:57:30 -04:00
</details>
2022-05-09 12:02:08 -04:00
2022-09-20 13:57:30 -04:00
<details>
2023-07-27 21:43:11 -04:00
<summary>
2023-07-27 22:02:30 -04:00
<h3 id="production" style="display: inline">
Production
</h3>
2023-07-27 21:43:11 -04:00
</summary>
#### Prerequisites
- [Docker](https://docs.docker.com/install/)
2022-05-09 12:02:08 -04:00
2023-07-27 21:43:11 -04:00
#### Instructions
2022-09-20 16:23:20 -04:00
1. Build the docker image: `docker build -t 291st:<TAG> .`
2. Start the new image: `docker run -p 4200:80 291st:<TAG>`
2023-07-27 21:43:11 -04:00
3. Open [http://localhost:4200](http://localhost:4200)
2022-05-09 12:02:08 -04:00
2022-09-20 13:57:30 -04:00
</details>
2022-05-09 12:02:08 -04:00
2022-09-20 13:57:30 -04:00
## Cheatsheet
```bash
# Start Angular server
npm run start
2022-05-09 12:02:08 -04:00
2022-09-20 13:57:30 -04:00
# Build production
npm run build:prod
2022-05-09 12:02:08 -04:00
2022-09-20 13:57:30 -04:00
# Build docker image
2022-09-20 16:23:20 -04:00
docker build -t 291st:<TAG>
2022-05-09 12:02:08 -04:00
2022-09-20 13:57:30 -04:00
# Run docker image
2022-09-20 16:23:20 -04:00
docker run -p 4200:80 291st:<TAG>
2022-09-20 13:57:30 -04:00
```