Code Monkey home page Code Monkey logo

talentql-assessment's Introduction

TalentQL-Assessment

Requirements

  • Node v12.16 and later versions
  • yarn
  • MySQL version 8

Setup steps

  1. Clone repo by running
git clone https://github.com/chygoz2/TalentQL-Assessment.git
  1. Run yarn install
  2. Copy contents of .env.example to .env
  3. Create 2 new MYSQL databases, one for the application and one for running tests.
  4. Set the MYSQL related values in the .env file to match what you have locally.
  5. Set TOKEN_SECRET to any random alphanumeric string.
  6. Run migrations using yarn db:migrate.
  7. To start the server, run yarn start. If the SERVER_PORT variable was not changed in your .env file, then the application would be running on port 3000, and can be accessed at http://127.0.0.1:3000, otherwise it would run on the new port specified.
  8. Run yarn test to run tests

Note

Actual email sending requires configuration of a valid SMTP server. For the purpose of this project, preview of email on an Ethereal account would serve as test of email sending, unless you configure your own SMTP server account.

If you don't configure an SMTP server, then the preview of the email sent can be viewed by visiting the link logged on the console of your terminal where the application was started.

API Documentation

The documentation of the various endpoints is available in the reference folder in the root directory. It was done using OpenApi v3.0.0, and can be viewed in a more user friendly manner by opening the folder using an application such as Stoplight Studio.

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.