Skip to content

Repository files navigation

messenger

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:

  1. npm install
  2. Create DB: npx sequelize-cli db:create
  3. Run migrations:
  • DATABASE_URL="postgres://postgres@localhost:5432/messenger_development" npm run migrate:up
  1. npm run dev
  2. http://localhost:3000

How to create a Pull Request:

  1. Switch back to main branch: git checkout main
  2. Pull from main branch: git pull origin main
  3. Create a new branch: git checkout -b new-branch
  4. git add .
  5. git commit -m "Here goes your comment"
  6. (Optional) git rebase -i main
  7. (Optional) In vim: "shift + :"
  8. (Optional) wq + enter
  9. git push origin new-branch
  10. Now go to github and create a Pull Request
  11. Merge PR to main branch
  12. Go to your console and delete the obsolete branch:
  • git branch -D new-branch

How to run tests in console:

  • npm run test

Heroku instance:

WebSocket transport repo:

About

No description, website, or topics provided.

Resources

Stars

2 stars

Watchers

3 watching

Forks

Releases

Packages

Contributors

Languages