@musalasoft/flights-server

1.0.12 • Public • Published

Overview

This is a skeleton JS backend application to be used for testing interview candidate's FE application development skills in any framework or vanilla JS.

See the swagger definition for details about its capabilities.

Prerequisites

  • Node >= 14.15

Build

npm install

Usage

npm start

You can modify the contents of the start script with the following parameters

node index.js [--port] [--auth] [--async]

--port: Change the port to run the server by default 3000.

--auth: Run the server with authentication enabled requiring authorization headers with bearer tokens. This will also allow login, registration and checking the user profiles.

--async: Specify file processing to be asynchronous to simulate real life scenarios with expensive cloud operations.

--verbose: Enable more verbose logging for debugging and testing

--noreadme: Only for candidates to disable opening home page automatically

The port for all the features described next is also updated accordingly based on the previous configuration

Documentation

Swagger documentation is available on http://localhost:3000/api-docs

Graphql

You can test and compose GraphQl queries and mutations on the url http://localhost:3000/graphql

Test

npm run test

Publishing the library

The library is available under the company repository in npm

https://www.npmjs.com/package/@musalasoft/flights-server

To create a new version increase the version number in package.json or run the npm version command with the desired configuration and run npm publish. You must log in the console with your credentials and have write access to the npm repo.

Readme

Keywords

none

Package Sidebar

Install

npm i @musalasoft/flights-server

Weekly Downloads

2

Version

1.0.12

License

none

Unpacked Size

88.1 kB

Total Files

58

Last publish

Collaborators

  • rafa_ms
  • petyo.dimitrov
  • emilion