Entrada destacada
Freddie Armando Romero Paredes Plans
Freddie Armando Romero Plans Leer más publicaciones en Calaméo
miércoles, 31 de mayo de 2023
server.ts
import express from 'express';
const app = express();
const port = 9000;
app.get('/', (req, res) =>{
  res.send('El servidor funciona correctamente!!!');
});
app.listen(port, () => {
   console.log(`El servidor está escuchando el puerto ${port}`);
});
typescriptejemplo1
PS C:\xampp\htdocs\TAREA1\typescriptejemplo1> npm init
This utility will walk you through creating a package.json file.
It only covers the most common items, and tries to guess sensible defaults.
See `npm help init` for definitive documentation on these fields
and exactly what they do.
Use `npm install ` afterwards to install a package and
save it as a dependency in the package.json file.
Press ^C at any time to quit.
package name: (typescriptejemplo1)
version: (1.0.0)                                                                                                                                          
description: ejemplo1 de typescript                                                                                                                       
entry point: (index.js)                                                                                                                                   
test command:
git repository: https://github.com/freddiearomerop/ejemplo1_typescript.git                                                                                
keywords: ejemplo1, typescript                                                                                                                            
author: Freddie Armando Romero Paredes
license: (ISC)                                                                                                                                            
About to write to C:\xampp\htdocs\TAREA1\typescriptejemplo1\package.json:
{
  "name": "typescriptejemplo1",
  "version": "1.0.0",
  "description": "ejemplo1 de typescript",
  "main": "index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "repository": {
    "type": "git",
    "url": "git+https://github.com/freddiearomerop/ejemplo1_typescript.git"
  },
  "keywords": [
    "ejemplo1",
    "typescript"
  ],
  "author": "Freddie Armando Romero Paredes",
  "license": "ISC",
  "bugs": {
    "url": "https://github.com/freddiearomerop/ejemplo1_typescript/issues"
  },
  "homepage": "https://github.com/freddiearomerop/ejemplo1_typescript#readme"
}
Is this OK? (yes) Yes
npm notice 
npm notice New patch version of npm available! 9.6.4 -> 9.6.7
npm notice Changelog: https://github.com/npm/cli/releases/tag/v9.6.7
npm notice Run npm install -g npm@9.6.7 to update!
npm notice
PS C:\xampp\htdocs\TAREA1\typescriptejemplo1> npm install -D typescript
added 1 package, and audited 2 packages in 1s
found 0 vulnerabilities
PS C:\xampp\htdocs\TAREA1\typescriptejemplo1> 
 
domingo, 28 de mayo de 2023
actu.php
FORMULARIOtxt_accesar.php
";
echo "Contrasena: ". $contrasena . " 
"; $insertSQL="INSERT INTO usuario (id,usuario,contrasena) VALUES (NULL, '$usuario', '$contrasena')"; mysqli_query($conn, $insertSQL); header('Location:l.php'); ?> actua.php
  | 










