Skip to content

JcJet/ivi-clone-profiles-ms

Repository files navigation

Profiles Microservice for Ivi Clone backend

Nest Logo

Description

This microservice is a part of Ivi Clone backend application. Here you can find an instructions for setting up and running microservice.

If you found this repo before exploring the main repo, I recommend you to explore main repo firstly for understanding how to run the application.

Requirements

  • Postgres
  • RabbitMQ
  • NodeJs, npm

Installation

$ npm i

Note: If you downloaded this repo from main repo script, there is no need to run install command.

Setting up & running service

For localhost

  1. Create database named profiles using Postgres.
  2. Set up .dev.env file.
  3. Run service!
# watch mode
$ npm run start:dev

For Docker

Set up a .docker.env file and continue follow main repo instructions.

.env file parameters (not self-explanatory)

VK_APP_ID=51665127
VK_SECRET=NyNcvvDQ11vkCLptRRsG

VK parameters for oauth. You can get them by creating an app here: https://dev.vk.com/

API_URL=http://193.32.203.137:4000

API URL should be an external address of API Gateway. It's required for oauth features to work.

Test

Create database 'profiles_tests' in Postgres. The database credentials from .dev.env file will be used.

# unit tests
$ npm run test

Author

Vladimir Andreev

Description

About

Profiles microservice for movies project.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published