Skip to content

firstsatoshi/website

Repository files navigation

website

deploy

initial deploy

git clone https://github.com/firstsatoshi/website.git

cd website

docker-compose up -d

# log
docker-compose logs -f  website

update deploy

docker-compose stop

docker-compose build website

docker-compose up -d

test api:

curl  -s -X POST -H 'Content-Type: application/json'  -d '
{
    "email":"youngqqcn@163.com",
    "btcAddress":"bc1p3vs4447e5w0g828adhvpekqndtkpxmr04cj99zurxlqz50v9lz2q656na6"
}' \
http://127.0.0.1:8888/api/v1/joinwaitlist | jq

or

curl  -s -X POST -H 'Content-Type: application/json'  -d '
{
    "email":"youngqqcn@163.com",
    "btcAddress":"bc1p3vs4447e5w0g828adhvpekqndtkpxmr04cj99zurxlqz50v9lz2q656na6"
}' http://www.biteagle.io/api/v1/joinwaitlist | jq

response

{
  "code": 0,
  "msg": "ok",
  "data": {
    "no": 1,
    "duplicated": true
  }
}

environment

install docker and docker-compose

sudo yum update -y

sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo

sudo yum install docker-ce -y
sudo systemctl start docker
sudo systemctl enable docker


sudo wget https://github.com/docker/compose/releases/download/v2.17.3/docker-compose-linux-x86_64 -O /usr/bin/docker-compose

sudo chmod +x /usr/bin/docker-compose