Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Diego Jared Donis Soto DiegoDoniss

🏠
Working from home
View GitHub Profile
@DiegoDoniss
DiegoDoniss / app.ts
Created Apr 6, 2022
Typescript: Express initial app
View app.ts
//importaciones de express
import express, { Application, json, urlencoded } from "express";
import cors from "cors";
import dotenv from 'dotenv'
//importacion de rutas
dotenv.config()
function settings(): void {
app.set("port", process.env.PORT || 3000);
}