@misterzik/espressojs

3.2.6 • Public • Published

Espresso

EspressoJS / Espresso

Introducing Espresso.JS, your ultimate Express configuration starting point and boilerplate. With its simplicity and lack of opinionation, EspressoJS offers plug-and-play configurations built on top of Express.

Whether you're a beginner or an experienced developer, EspressoJS will have you up and running with an Express instance in a matter of seconds. Say goodbye to tedious setup and hello to streamlined development with EspressoJS.

Getting Started

  • Download latest release

    npm install --save @misterzik/espressojs

  • Create config.json to handle the instances

    {
      "instance": "development",
      "port": 8080,
      "hostname": "",
      "mongoDB": {
        "enabled": false,
        "uri": "",
        "instance": "database"
      },
      "api": {
        "enabled": false,
        "uri": "https://swapi.dev/api/people/",
        "url": "",
        "method": "GET",
        "headers": {
          "Content-Type": "application/json"
        }
      }
    }
    
  • Create .env if you don't want to use config. A mix is possible.

    MONGO_USER=USER
    MONGO_TOKEN=PASSWORD
    API_TOKEN=APITOKEN
    
  • Create espresso.js and add the following requirements to call the packages.

    require("@misterzik/espressojs");
    
  • Create cli.js and add the following requirements to call the packages.

    require('@misterzik/espressojs/cli');
    
  • And you are all set to start, To run the instance, use:

    node cli run
    

Structured Files

Pre-made Configurations:

  • server/config/config.global.js
  • server/config/config.production.js
  • server/config/config.development.js

Commands

  • Stop server by pressing CTRL + C to terminated the Espresso process.

Requirements

Installed prior using Espresso.JS

  • NodeJS
  • NPM

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
3.2.62latest

Version History

VersionDownloads (Last 7 Days)Published
3.2.62
3.2.50
3.2.40
3.2.31
3.2.20
3.2.10
3.2.00
3.1.200
3.1.190
3.1.180
3.1.170
3.1.160
3.1.150
3.1.140
3.1.130
3.1.120
3.1.110
3.1.100
3.1.90
3.1.80
3.1.70
3.1.00

Package Sidebar

Install

npm i @misterzik/espressojs

Weekly Downloads

3

Version

3.2.6

License

MIT

Unpacked Size

46.1 kB

Total Files

19

Last publish

Collaborators

  • misterzik