291st/README.md

48 lines
1.1 KiB
Markdown
Raw Normal View History

2022-09-20 13:57:30 -04:00
# 291st JTF
Clan page for the 291st Joint Task Force
2022-05-09 12:02:08 -04:00
2022-09-20 13:57:30 -04:00
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 14.2.2.
2022-05-09 12:02:08 -04:00
2022-09-20 13:57:30 -04:00
## Table of Contents
[[_TOC_]]
2022-05-09 12:02:08 -04:00
2022-09-20 13:57:30 -04:00
## Prerequisites
- [Git](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git)
- [NodeJS 16](https://nodejs.org/en/)
- _[Docker](https://docs.docker.com/install/) (Optional)_
2022-05-09 12:02:08 -04:00
2022-09-20 13:57:30 -04:00
## Setup
The project can either be run using NPM or Docker. NPM is recommended for development.
<details>
<summary>NPM</summary>
2022-05-09 12:02:08 -04:00
2022-09-20 13:57:30 -04:00
1. Install the dependencies: `npm install`
2. Start the Angular server: `npm run start`
</details>
2022-05-09 12:02:08 -04:00
2022-09-20 13:57:30 -04:00
<details>
<summary>Docker</summary>
2022-05-09 12:02:08 -04:00
2022-09-20 13:57:30 -04:00
1. Build the docker image: `docker build -t legio-xxx:<TAG> .`
2. Start the new image: `docker run -p 4200:80 legio-xxx:<TAG>`
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
The website should now be accessible on [http://localhost:4200](http://localhost:4200)
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
docker build -t legio-xxx:<TAG>
2022-05-09 12:02:08 -04:00
2022-09-20 13:57:30 -04:00
# Run docker image
docker run -p 4200:80 legio-xxx:<TAG>
```
2022-05-09 12:02:08 -04:00