https://github.com/firmanjs/nodejs-kubernetes
https://github.com/firmanjs/nodejs-kubernetes
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/firmanjs/nodejs-kubernetes
- Owner: firmanJS
- Created: 2022-05-17T10:01:57.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-05-20T10:13:29.000Z (almost 4 years ago)
- Last Synced: 2025-02-02T09:41:32.328Z (about 1 year ago)
- Language: JavaScript
- Size: 46.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Express api
Express api using nodejs version `16.x`.
## Getting started
- **Clone This Repository Using HTTPS**
```bash
git clone https://github.com/firmanJS/nodejs-kubernetes.git
cd existing_repo
```
## DIAGRAM

### Run Application
running application three methods manually, using docker or via Makefile
* Manually :
```bash
# Install package via npm or yarn
yarn install
```
* Via Make :
```bash
# Build application
make docker-build
# run application after build
make docker-start
# Stop aplication
CTRL+C
# then
make docker-down
# stop application and others service
make docker-stop
# run seed
make docker-seed
```
### Deploy Application
```bash
kubectl apply -f deployment
```
### Users dummy
```bash
Admin
username :admin
password: admin
User
username :user
password: user
```