Kvell.js

Kvell.js

  • Docs
  • Database Plugins
  • Github

›Guide

Getting Started

  • Introduction
  • Install
  • kvell.config.js
  • kvell-plugins.js
  • Available Scripts
  • Packages Used In Kvell
  • API

Guide

  • Folder Structure
  • Global
  • Routes and Controllers
  • Models
  • Api Documentation
  • Logging in Kvell
  • Using Custom Ports in Development
  • Debugging in Kvell

Auto-Templating

  • Overview
  • Using generation scripts
  • Using kvell.config.js
Edit

Using Custom Ports in Development

For using custom ports in your application, you can either

  • Add a PORT key in your .env file.
  • Pass the PORT environment variable through the command line.

Add to .env file

PORT=8000

Pass PORT via command line

Windows (cmd.exe)

set PORT=8000&&npm start

(Note: the lack of whitespace is intentional.)

Windows (Powershell)

($env:PORT = "8000") -and (npm start)

Linux, macOS (Bash)

PORT=8000 npm start

To avoid having to set the environment variable each time, you can either include in the npm start script like so:

{
  "start": "PORT=8000 kvell-scripts start"
}
Last updated on 7/16/2020 by Neeraj Sharma
← Logging in KvellDebugging in Kvell →
  • Add to .env file
  • Pass PORT via command line
    • Windows (cmd.exe)
    • Windows (Powershell)
    • Linux, macOS (Bash)
Kvell.js
Docs
Getting StartedGuidesDatabase Plugins
Social
kvell
Follow @nsharma1396
Copyright © 2020 Neeraj Sharma.