pres.js

0.0.3 • Public • Published

PRES

A Simple Express App Builder For Beginners

DOWNLOAD

  • Open up your terminal
  • Run npm i pres.js

SETUP

  • Create an HTML file (myFile.html)
<h1>Hello, welcome to my website made with Pres!</h2>
  • Create a javascript file (index.js)
  • Import Pres
const Pres = require('pres.js');
  • Create Your App
const Pres = require('pres.js');
let app = new Pres(3000); // 3000 is the port
  • Create A Path
const Pres = require('pres.js');
let app = new Pres(3000);

app.create('/', 'myFile.html');
  • Start your app
const Pres = require('pres.js');
let app = new Pres(3000);

app.create('/', 'myFile.html');

app.start(function(){
  console.log(`Your app is started at localhost:${app.port}`);
});
  • Open your terminal
  • Run this command:
node index.js
  • Open up your browser and go to localhost:3000!

Version 0.0.3 BETA

Readme

Keywords

Package Sidebar

Install

npm i pres.js

Weekly Downloads

0

Version

0.0.3

License

ISC

Unpacked Size

2.73 kB

Total Files

6

Last publish

Collaborators

  • awyerbx