Local Environment Setup:
- see the config example in .env.example
- create a new .env file and put ENV variables names from .env.example to .env
- ask 1lyan for values of those variables
To start application locally:
- npm install
- Create DB: npx sequelize-cli db:create
- Run migrations:
- DATABASE_URL="postgres://postgres@localhost:5432/messenger_development" npm run migrate:up
- npm run dev
- http://localhost:3000
- Switch back to main branch: git checkout main
- Pull from main branch: git pull origin main
- Create a new branch: git checkout -b new-branch
- git add .
- git commit -m "Here goes your comment"
- (Optional) git rebase -i main
- (Optional) In vim: "shift + :"
- (Optional) wq + enter
- git push origin new-branch
- Now go to github and create a Pull Request
- Merge PR to main branch
- Go to your console and delete the obsolete branch:
- git branch -D new-branch
- npm run test