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)
|
|
|
|
|
|
|
|
This is the clan [website](https://291st.ca) for the 291st Joint Task Force.
|
|
|
|
|
|
|
|
This project was generated using Angular 14.
|
2022-05-09 12:02:08 -04:00
|
|
|
|
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)
|
|
|
|
- [Stack](#stack)
|
|
|
|
- [Setup](#setup)
|
|
|
|
- [Development](#development)
|
|
|
|
- [Production](#produciton)
|
|
|
|
- [Cheatsheet](#cheatsheet)
|
|
|
|
|
|
|
|
## 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>
|
|
|
|
<h3 style="display: inline">Development</h3>
|
|
|
|
</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>
|
|
|
|
<h3 style="display: inline">Production</h3>
|
|
|
|
</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
|
|
|
```
|