Typescript server application boilerplate. Express, PostgresSQL, Websocket
docker-compose up -d # DB contaner start
yarn typeorm:dev:sync # DB init
yarn && yarn dev # Start Express Server
change schema and codegen.yml
then, generate ts inteface.
yarn graphql:codegen
development stated and open http://localhost:5000/graphql
heroku create
// **** is heroku of git repository
git add remote heroku ****
git push heroku master
heroku docs https://devcenter.heroku.com/articles/git
heroku command
heroku log -t # logs
heroku logs -p postgres -t # postgres logs
heroku addons # addons info
heroku pg:info # pgql info
connect database
heroku pg:psql # connect pgql
# then
DATABASE-> CREATE TABLE IF NOT EXISTS ...
- database migration
- restfull api
- Unit Test
- graphql
- File Upload (AWS S3)
- jwt
- WebSocket
graphql-codegen https://graphql-code-generator.com/docs/getting-started/