https://github.com/jerlibgnzlz/dt-cool
Destinos Turisticos COOL
https://github.com/jerlibgnzlz/dt-cool
bcrypt cloudinary dotenv expressjs fs-extra jwt-token mongodb-atlas mongoose morgan multer nodejs nodemon typescript
Last synced: 2 months ago
JSON representation
Destinos Turisticos COOL
- Host: GitHub
- URL: https://github.com/jerlibgnzlz/dt-cool
- Owner: JerlibGnzlz
- Created: 2023-06-09T19:58:59.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-06-12T04:14:36.000Z (almost 2 years ago)
- Last Synced: 2025-02-05T00:31:52.848Z (4 months ago)
- Topics: bcrypt, cloudinary, dotenv, expressjs, fs-extra, jwt-token, mongodb-atlas, mongoose, morgan, multer, nodejs, nodemon, typescript
- Language: TypeScript
- Homepage:
- Size: 61.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README

## :book: Informacion sobre la API destinos turĂsticos
`La Api consiste en implementar un sistema de registro e inicio de usuario y al ingresar poder crear destinos turisticos con su nombre descripcion de destino mas una imagen `
_____________________________________________________________________
- ## Pasos para hacer la instalacion
1|clonar el repositorio de GitHub.
2|hacer `npm i` para que se instalen todas las dependencias.
3|scripts para correr la aplicacion: `npm run dev`.
4|al levantar el servidor podra acceder a este Endpont,
donde podra ver documentacion en `swagger` http://localhost:3001/api/document/

> la base de datos esta en `mongoDB atlas`.
> las imagenes se almacenan en `cloudinary`.

______________________________________________________________________________________________________________________
`Variables de entorno: .env.example`
URI_MONGO=
PORT=
JWT_SECRET=
CLOUDINARY_NAME=
CLOUDINARY_API_KEY=
CLOUDINARY_API_SECRET=
## Endpoint para el inicio de sesion
- `post` http://localhost:3001/register

- `post` http://localhost:3001/login

> El usuario al hacer login le genera un `token` para acceder a la aplicacion.
>
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImplcmxpYkBjb3JyZW8uY29tIiwiaWF0IjoxNjg2Mjk3OTYzLCJleHAiOjE2ODYzMDg3NjN9.QlK9nDLhgmSNVHyR61zMEKkG5QAHoeShhP589bWfNKY## Endpoint para el CRUD de Destinos turisticos: POST / GET / PUT / DELETE
- `post` http://localhost:3001/API/travel

- `get` http://localhost:3001/API/travel/:id + `token`

- `gets` http://localhost:3001/API/travels

- `put` http://localhost:3001/API/travel/:id + `token`

- `delete` http://localhost:3001/API/travel/:id + `token`

## `Skill Utilizadas`
"bcrypt": "^5.1.0",
"cloudinary": "^1.37.0",
"dotenv": "^16.1.3",
"express": "^4.18.2",
"fs-extra": "^11.1.1",
"jsonwebtoken": "^9.0.0",
"mongoose": "^7.2.2",
"morgan": "^1.10.0",
"multer": "^1.4.5-lts.1"
"swagger-jsdoc": "^6.2.8",
"swagger-ui-express": "^4.6.3""@types/bcrypt": "^5.0.0",
"@types/dotenv": "^8.2.0",
"@types/express": "^4.17.17",
"@types/jsonwebtoken": "^9.0.2",
"@types/mongoose": "^5.11.97",
"@types/morgan": "^1.9.4",
"@types/multer": "^1.4.7",
"@types/node": "^20.2.5"
"@types/swagger-jsdoc": "^6.0.1",
"@types/swagger-ui-express": "^4.1.3"