This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

minty-expresso

1.2.5 • Public • Published

Overview

Installation

In order to install 'minty-expresso', you'll need to have NodeJS installed. You can get it completely for free here:

Once you've installed NodeJS, you'll need to install 'express', 'nodemon', and 'minty-expresso' using the following terminal command:

npm install minty-expresso

Depending on the speed of your computer and internet connection, this will take some time.

Functions

const mintyExpresso = require('minty-expresso')

Require the 'minty-expresso' package from the npmjs registry and set its value to a constant variable.

mintyExpresso.newAddress('/', __dirname + '/static/index.html')

Specify the location of the file (as seen in the browser's address bar) and enter the directory of the actual file, relative to the directory the terminal is in.

mintyExpresso.newPort(3000, 'running!')

Finally, start the server on whatever port you'd like, and enter a message to be logged once it is up and running!

npm start

After running the command via the terminal, the server should start up and you should see whatever you wrote for the startup message in the terminal!

However, if you encounter an error, please feel free to check out the GitHub repo, as I have created an example project, complete with src, exports, and static folders.

Links

Credits

Package Sidebar

Install

npm i minty-expresso

Weekly Downloads

0

Version

1.2.5

License

MIT

Unpacked Size

5.64 kB

Total Files

5

Last publish

Collaborators

  • lolaraji