- frourio-framework-prisma-generators
- prisma generator that keeps your DX and speed 🚀
# At root dir
cd frourio-template-railway-tailwind
Setup .env
# With makefile
make env-setup-local
Run the app
# Let's run DB containers to begin with
docker-compose up -d
# Run npm install for all the directories
make install
# Run dev server for both frontend & backend
npm run dev
①
# move directory to frontend
cd frontend-web
②
# initialize supabase cofiguration
npx supabase init
③
# Let's staet Supabase
npx supabase start
After a moment, local keys and configurations will be generated.
④
Create fields for "NEXT_PUBLIC_SUPABASE_URL" and "NEXT_PUBLIC_SUPABASE_ANON_KEY" in your .env.local file, and set their values to the "API URL" and "anon key", respectively.
⑤
Access the Studio URL for initial setup.
1)Navigate to the Storage section and create a new bucket.
2)Go to the Policies section under Storage and create your storage policies (make sure to pay attention to the bucket name, folder name, and allowed file extensions, as they are case-sensitive).
⑥
Finally, call the API to perform actual uploads and other operations.
- AWS CLI
- [AWS SSM Plugin](https://docs.aws.amazon.com/ja_jp/systems-manager/latest/userguide/session-manager-working-with-install-plugin. html)
$ cd frourio-template-railway-tailwind
$ sh . /scripts/ecs_exec_stg -t ((task-id)) # Example) . /scripts/ecs_exec_stg -t 941f8694308b4adea44cb07ff9e50c30
version: 1
applications:
- frontend:
phases:
preBuild:
commands:
- cd ../
- npm install --prefix frontend-web
- npm install --prefix backend-api
build:
commands:
- cd frontend-web
- npm run build
artifacts:
baseDirectory: .next
files:
- "**/*"
cache:
paths:
- .next/cache/**/*
- .npm/**/*
appRoot: frontend-web