Skip to content

misaka3/nextjs-ts-rails-mysql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

README

初めにやること

作業ディレクトリにgit clone

$ mkdir {appName}
$ cd {appName}
$ git clone https://github.com/misaka3/flight_checker.git

Next.jsアプリの依存パッケージをインストール ※初回構築時対応

$ docker-compose run -w /front --rm front yarn install

imageのビルド、コンテナ作成

$ docker-compose up -d

backend側対応

DB作成

$ docker compose exec api rails db:create

railsアプリへアクセス

http://localhost:3001/

frontend側対応

Next.jsアプリへアクセス

http://localhost:3000/