Skip to content

JvilleDev/Simple-Web-Server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Simple Web Server

Descripción en Español:

Antes de comenzar, clona el repositorio:

git clone https://github.com/JvilleDev/Simple-Web-Server.git

Instala las dependencias globalmente:

npm i -g

Inicia el servidor:

npm start(Si lo mantienes en el directorio donde se clonó) o node server si lo copias a otro directorio.


El server.js servirá todos los archivos en el directorio en el que se encuentra, en el puerto 4000, pero lo puedes cambiar, alterando el valor de const PORT = process.env.PORT || 4000;


En los Releases se encuentra la versión en ejecutable, por si no quieres usar Node

English Description:

Before you begin, clone the repository:

git clone https://github.com/JvilleDev/Simple-Web-Server.git.

Install the dependencies globally:

npm i -g

Start the server:

npm start (if you keep it in the directory where it was cloned) or node server if you copy it to another directory.


The server.js will serve all files in the directory where it is located, on port 4000, but you can change it, altering the value of const PORT = process.env.PORT || 4000;.