Coder Social home page Coder Social logo

hackaton_saludjebca's Introduction

Dependencias

  • cors npm i cors
  • dotenv npm i dotenvnodemon
  • express npm i express
  • mongoose npm i mongoose
  • multer npm i multer
  • nodemon npm install -g nodemon
  • express-validator npm i express-validator
  • npm i mongoose-delete -S eliminado logico

para generar un nueva llave jwt debes de tener creado tu archivo .env en la raiz principal de tu proyecto

y luego correr este comando

npm run jwt:secret

npm i

Correr el proyecto

-----npm run dev-----

Hackaton SaludJEBCA

![image](https://github.com/ClaudiaPM/Hackaton_SaludJEBCA/assets/37117102/b2202248-fc4f-4c15-b171-6bb79f760006)

base de datos provisional

CREATE TABLE usuarios ( id INT PRIMARY KEY AUTO_INCREMENT, name VARCHAR(255) NOT NULL, age VARCHAR(255) NOT NULL UNIQUE, email VARCHAR(255) NOT NULL UNIQUE, password VARCHAR(255) NOT NULL, role ENUM('user', 'admin') DEFAULT 'user', createdAt DATETIME NOT NULL, updatedAt DATETIME NOT NULL );

CREATE TABLE tokens ( id INT PRIMARY KEY AUTO_INCREMENT, user_id INT NOT NULL, token VARCHAR(255) NOT NULL, expire_at DATETIME NOT NULL, createdAt DATETIME NOT NULL, updatedAt DATETIME NOT NULL, FOREIGN KEY (user_id) REFERENCES usuarios(id) );

This is a group project in development with the aim of participating in the Hackaton program

Estado del proyecto:

🚧 Proyecto en construcción, BACKEND 🚧

Desarrolladores:

Claudia Iliana Padilla,

Julio Pineda,

Edwin Santos,

Cristian Alexis Garcia,

Brandon Rodriguez

hackaton_saludjebca's People

Contributors

claudiapm avatar alexis-garcia-dev avatar mrrevangelionx avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.