Skip to content

pellexa/middle.messenger.praktikum.yandex

Repository files navigation

Messenger

Messenger is the first project of the PracticumYandex. Published on netlify.com here. Published on render.com here.

For development

git clone -b deploy https://github.com/pellexa/middle.messenger.praktikum.yandex.git

cd middle.messenger.praktikum.yandex/

npm install

npm run serve

http://localhost:8080/

Linting commands(run in project root):

npx eslint src/ - ESLint

npx tsc --noEmit - Typescript checks all files without transpiling

npx stylelint "**/*.scss" - Stylelin

Commit changes

Husky (pre-commit) is configured in the .husky/pre-commit file. To commit the changes, first run: npm prepare, and then git commit -m ...

To commit without pre-commit checks, run with -n: git commit -nm ...

to start express server run (first abort the npm run dev command):

npm run build

npm run start

http://localhost:3000/

Run in Docker(run in project root):

docker build -t messenger_nodejs197 .

docker run --rm -d --name running_messenger -p 8081:3000 messenger_nodejs197

http://localhost:8081/

to stop the container, run:

docker stop running_messenger

To run tests(run in project root):

npm test

Design here

Pull Request link for sprint_1

Pull Request link for sprint_2

Pull Request link for sprint_3

Pull Request link for sprint_4