GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - KTH/node-api: Node API is the backend service for node-web. It is also a template for Node API applications developed at KTH.

BranchesTags
Open more actions menu

Latest commit

 

History

762 Commits
762 Commits

Folders and files

NameName
Last commit message
Last commit date
.azure
.azure
 
 
.github
.github
 
 
.husky
.husky
 
 
__mocks__
__mocks__
 
 
config
config
 
 
server
server
 
 
test
test
 
 
.dockerignore
.dockerignore
 
 
.env.ini
.env.ini
 
 
.git-blame-ignore-revs
.git-blame-ignore-revs
 
 
.gitignore
.gitignore
 
 
.lintstagedrc.yaml
.lintstagedrc.yaml
 
 
.prettierignore
.prettierignore
 
 
Dockerfile
Dockerfile
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
TESTING.md
TESTING.md
 
 
app.js
app.js
 
 
docker-compose-integration-tests.yml
docker-compose-integration-tests.yml
 
 
docker-compose-unit-tests.yml.in
docker-compose-unit-tests.yml.in
 
 
docker-compose.yml.in
docker-compose.yml.in
 
 
eslint.config.js
eslint.config.js
 
 
nodemon.json
nodemon.json
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 
sonar-project.properties
sonar-project.properties
 
 
swagger.json
swagger.json
 
 

Repository files navigation

Node API

Description

Node API is the backend service for node-web. It is also a template for Node API applications developed at KTH.

Installation

Install Dependencies

$ npm install

Environment Variables

Sensible defaults are set and the application can run locally with an empty .env file.

Name Description Default Value
API_KEYS Configuration for access to API; string with name, key, and scope ?name=devClient&apiKey=1234&scope=write&scope=read
LOGGING_ACCESS_LOG Enables or disabled application access log, used by dependency kth-node-access-log true
LOGGING_LEVEL Application logging level, used by dependency @kth/log debug
MONGODB_URI Document database connection string mongodb://127.0.0.1:27017/node
SERVER_PORT The HTTP server port 3001
SERVICE_PUBLISH Root path for the application /api/node

Local Databases

  • It is recommended to use a local document database with kth-node-backend

Usage

Start the application in local development mode:

$ npm run start-dev

Access the Swagger UI on localhost:3001/api/node/swagger. Authorize with API key set with environment variable API_KEYS. Default value is 1234.

Running Tests

Tests are setup with Jest. Run them with:

$ npm test

Contact

Node API is developed and maintained by Team KTH Web.

About

Node API is the backend service for node-web. It is also a template for Node API applications developed at KTH.

Resources

Readme
MIT license
Activity
Custom properties

Stars

0 stars

Watchers

16 watching

Forks

1 fork
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.