module
Version:
v0.0.0-...-d451a21
Opens a new window with list of versions in this module.
Published: Nov 9, 2017
License: BSD-3-Clause
Opens a new window with license information.
README
¶
simple-chat
Learning Golang(https://golang.org/) for api implementation and ReactJS(https://facebook.github.io/react/) for frontend implementation
Development env
setup and build docker containers
- Setup docker(https://www.docker.com/) and docker-compose(https://docs.docker.com/compose/)
- Run
cp docker-compose.local.yml docker-compose.override.yml
- Run
docker-compose build
- Run
docker-compose up -d
env and config files
- Run
cp .env.example .env
- Modify
.env file as you wish
- Run
mkdir server/settings/secret && cd server/settings/secret
- Run
openssl genrsa -out jwt.rsa 1024
- Run
openssl rsa -in jwt.rsa -pubout > jwt.rsa.pub
- Run
cd ../../..
run docker container for compiling and running of server
- Run
docker-compose exec server bash
- Run
go get -u github.com/govend/govend to install package manager
- Run
govend -v to download dependencies
develoment server cycle commands
- Run
go install for compiling and installing of server in docker container
- Run
server for starting of server
Directories
¶
Click to show internal directories.
Click to hide internal directories.