Giter Site home page Giter Site logo

outside-task's Introduction

При необходимости развернуть быстро и просто

Создаем файл .env и полностью копируем туда содержимое .env.example.

После чего:

docker compose up

Приложение будет доступно по адресу localhost:3000/{маршрут}

Документация swagger localhost:3000/docs

При ручном развертывании без Docker

Создать .env со своими данными по образцу .env.example.

yarn

или

npm i

После чего запускаем миграции:

yarn sequelize-cli db:migrate

или

npx sequelize-cli db:migrate

После чего запускаем приложение:

yarn start:dev

или

npm run start:dev

Описание .env параметов:

APP_HOST=имя-хоста

APP_PORT=порт

POSTGRES_USER=имя-пользователя-БД

POSTGRES_PASSWORD=пароль-пользователя-БД

POSTGRES_DB=имя-БД

POSTGRES_HOST=имя-хоста-БД

POSTGRES_PORT=порт-БД

ACCESS_TOKEN_EXPIRATION_TIME=время-действия-токена-доступа

ACCESS_TOKEN_SECRET=секрет-токена-доступа

REFRESH_TOKEN_EXPIRATION_TIME=время-действия-токена-обновления

REFRESH_TOKEN_SECRET=секрет-токена-обновления

outside-task's People

Contributors

twtzptr avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.