A collection of all my tech tests
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Roger Gonzalez 34717cd3b5 Initial commit 9 months ago
..
cron Initial commit 9 months ago
src Initial commit 9 months ago
test Initial commit 9 months ago
.env.example Initial commit 9 months ago
.eslintrc.json Initial commit 9 months ago
.gitignore Initial commit 9 months ago
.nycrc Initial commit 9 months ago
.prettierrc Initial commit 9 months ago
LICENSE Initial commit 9 months ago
README.md Initial commit 9 months ago
package-lock.json Initial commit 9 months ago
package.json Initial commit 9 months ago

README.md

Payever test

Comes with:

  • ES6 support.
  • ESLint for code linting.
  • Configuration management using dotenv.
  • Logging of requests with Winston.
  • Tests using Mocha/Chai.
  • Coverage report through nyc.

Prerequisites

Setup

Clone the repository, install the dependencies and get started right away.

$ git clone [email protected]:Rogergonzalez21/payever-test.git <application-name>
$ cd <application-name>
$ rm -rf .git
$ npm install

Make a copy of .env.example as .env and update your application details and database credentials.

Environment variables description

  • NODE_ENV: The node environment
  • PORT: Application port. If not specified, it defaults to port 7777.
  • TEST_PORT: Port to run tests.

This in an example of a .env file

NODE_ENV=development
PORT=3000
TEST_PORT=3333

Starting the application

$ npm run start

Tests

If you have set the test database on the .env file, you can run the tests by using

$ npm run test

License

payever-test is under MIT License.