Primeiro Site!
Simples conexão entre uma WEB PAGE usando:
- EXPRESS
- EXPRESS HANDLEBARS
- mysql
- dotenv
- body-parser
To execute te server
- Install XAMPP and run sql server
Run SCHEMA.sql file Run DATA.sql file
- Inside the repository, run
npm install
- Create enviroment file .env and inside it put:
DB_HOST = localhost DB_NAME = SITECATALOGO DB_USER = COLOCAR O NOME DO USUARIO PARA O MYSQL SERVER DB_PASS = COLOCAR A SENHA DO USUARIO PARA O MYSQL SERVER
- RUN aplication
node app.js