Profiles Microservice for Ivi Clone backend
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.
- Postgres
- RabbitMQ
- NodeJs, npm
$ npm i
Note: If you downloaded this repo from main repo script, there is no need to run install command.
- Create database named profiles using Postgres.
- Set up .dev.env file.
- Run service!
# watch mode
$ npm run start:dev
Set up a .docker.env file and continue follow main repo instructions.
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.
Create database 'profiles_tests' in Postgres. The database credentials from .dev.env file will be used.
# unit tests
$ npm run test