Skip to content

jLeonelDev/salesloft_code_test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 

Repository files navigation

SalesLoft Code Test

Code Test For SalesLoft

https://docs.google.com/document/d/1ChozkkouQrRESGlvZYEM4sNAyks5mK-cAODGSKvgYjM/edit

Backend was build in Elixir and Frontend in ReactJS

Requirements

You need this software installed in your machine in order to execute the application.

Installation

If you have all the requirements correctly installed your application will run.


If is the first time you run the application.

First add the .env files in these directories.

/backend/.env

MIX_ENV=dev
SALESLOFT_API_KEY=*YOUR_API_KEY*
SALESLOFT_ENDPOINT=https://api.salesloft.com/v2/
SALESLOFT_GET_PEOPLE=people.json

/frontend/.env

REACT_APP_API_URL=http://localhost:4000

After that only run this command

docker-compose up -d

Wait a moment and apllication should run on por 3000 http://localhost:3000

Run backend unit test

docker-compose exec salesloft_backend /bin/sh -c "MIX_ENV=test mix test"

Run frontend unit test

docker-compose exec salesloft_frontend /bin/sh -c "yarn test"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published