- yarn 1.x
- NextJS
- NestJS
- Prisma ORM
- PostgresQL
- Make migrations manually
- Install NodeJS exactly 20.5.0 version
yarn installin root,backendandfrontenddirectories separately- Create inside
backenddirectory copy of file.env.samplefile with name.env - Create inside
frontenddirectory copy of file.env.samplefile with name.env - Setup database using command
yarn main:db:startinside root directory - If it's first run or database schema was changed after this command run in
backendfolder commandyarn prisma:generateandyarn prisma:migrate - Run in folder
backendcommandyarn backend:start:devto start backend - Run in folder
frontendcommandyarn frontend:start:devto start frontend. Please use for development http://127.0.0.1/en instead http://localhost/en as telegram authentication will not work with localhost domain.
- If you have invalid signature error, then check that in backend/.env you have ADMINISTRATOR_BOT_NAME and TELEBETTER_BOT_API_KEY for the same bot.
- Channel to add to test https://t.me/telebettertest
https://locize.com/blog/next-app-dir-i18n/
- Login to heroku cli
- Add to git heroku remotes
heroku git:remote -a telebetter-api-production -r telebetter-api-production - Run
yarn deploy:frontendandyarn deploy:backend
- pg_dump -h localhost -U user -W -d dblocal > latest_dump.sql
- psql -h localhost -U user -W -d dblocal < latest_dump.sql
npm i -g localtunnellt --port 3000