/tsukiyo

Primary LanguageVue

NONSTYLE stack

フロントエンド

バックエンド

データベース

開発環境

Setup

docker-compose up

edit hosts file

sudo vim /etc/hosts

add these two lines:

+++ 127.0.0.1 nonstyle.net
+++ 127.0.0.1 api.nonstyle.net

view nonstyle.net in browser

Ports

port server
:80 nginx proxy
:4000 rust api
:3000 vue frontend
:5432 postgresql
:6379 redis

Run migrations

docker-compose run --rm --user $(id -u) backend sh

inside container:

diesel setup
diesel migration run

to redo migration:

diesel migration redo

api endpoints

path
/graphiql graphiql inspector
/graphql graphql endpoint

deploy

using cloud storage + cloud run + cloud sql

install Google Cloud SDK

curl https://sdk.cloud.google.com | bash

gcloud config set project tsukiyo
gcloud config set run/region asia-northeast1