https://github.com/firmanjs/socket-template
https://github.com/firmanjs/socket-template
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/firmanjs/socket-template
- Owner: firmanJS
- Created: 2023-04-28T09:15:00.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-04-28T10:14:18.000Z (almost 3 years ago)
- Last Synced: 2025-02-02T09:41:29.936Z (about 1 year ago)
- Language: JavaScript
- Size: 8.79 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Webscoket Bidding
Realtime Chat Socket Template
## Getting started
- **Clone This Repository Using HTTPS**
```bash
git clone https://github.com/firmanJS/socket-template.git
cd existing_repo
```
### Run Application
running application three methods manually, using docker or via Makefile
* Manually :
```bash
# Copy enviroment variables from .env.sample to .env
cp .env.sample .env
# Copy Makefile for simple command
cp Makefile.sample Makefile
# Install package via npm or yarn
npm install
# Run application via npm or yarn
npm run dev
```
* Via Docker :
```bash
# Copy enviroment variables from .env.sample to .env
cp .env.sample .env
# Build application
docker-compose -f docker-compose-dev.yml up --build --remove-orphans --force-recreate
# Stop aplication
CTRL+C
# then
docker-compose -f docker-compose-dev.yml down
# After build you can run command with this
docker-compose -f docker-compose-dev.yml up
# Or you can hide log with command
docker-compose -f docker-compose-dev.yml up -d
```
* Via Make :
```bash
# Copy enviroment variables from .env.sample to .env
cp .env.sample .env
# Build application
change compose-file value with your environtment
make docker-build
# Stop aplication
CTRL+C
# then
make docker-down
# After build you can run command with this
make docker-start
```