Skip to content

alezvi/fullstack-node-express

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

INSTALAR EXPRESS GENERATOR

npm install express-generator -g

PEDIRLE AL GENERATOR QUE GENERE UN PROYECTO

express --view=ejs nombre-de-la-carpeta

ENTRAR LA CARPETA

cd nombre-de-la-carpeta

INSTALAR DEPENDENCIAS

npm install

CAMBIAR EL PACKAGE JSON PARA USAR NODEMON

Si no tengo nodemon instalado

npm i nodemon -g

Si ya tiene nodemon en el archivo package.json modificar la linea que dice

"scripts" : {
    "start": "node ./bin/www"
}

Reemplazarlo por

"scripts" : {
    "start" : "nodemon ./bin/www"
}

INSTALAR EJS

npm i ejs

MOVER LOS .html A /views

CAMBIAR LA EXTENSION POR .ejs

INICIAR EL PROYECTO

npm start

ABRIR EN EL NAVEGADOR

http://localhost:3000/

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors