pres.js
v0.0.3
Published
A simple Express app builder for beginners.
Downloads
6
Readme
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