CREATE DATABASE reactnativess; CREATE DATABASE reactnativesstest;
npm i
npm start - start backend;
npm run dev:frontend - start frontend;
http://localhost:3000/ - backend http://localhost:3001/ - frontend
initially:
run docker
docker build -t koriifua/mysql-react-native .
docker run -p 3306:3306 -d koriifua/mysql-react-native
regularly:
docker start <your container id>
docker stop <your container id>
localhost:3306
- MySQL here
create migration: node ./node_modules/db-migrate/bin/db-migrate create test --config ./src/configs/config.json -m ./src/migrations
run migrations: npm run mup
down migrations: npm rum mdown
PRIVATE_KEY - google sheet api key
CLIENT_EMAIL - google sheet service email
SPREAD_SHEET_ID - google spreadsheet id