Skip to content

Instantly share code, notes, and snippets.

View diurivj's full-sized avatar

Diego Vazquez diurivj

View GitHub Profile
@diurivj
diurivj / HOW TO DEPLOY.md
Last active August 11, 2023 10:12
STEPS FOR DEPLOYING THE FULL STACK PROJECT.

Backend

  1. Change the .env file:
FRONTENDPOINT=yourproductionendpointforthefrontend(netlify)
  1. Initialize git, commit your changes and push to heroku:
$ git init 
@diurivj
diurivj / check.md
Last active January 6, 2023 20:05 — forked from Jossdz/check.md
Revisión del Prework en español.
@diurivj
diurivj / settings.json
Last active May 12, 2022 20:18
Visual Studio Code settings
{
"editor.hover.enabled": true,
"window.restoreFullscreen": false,
"window.restoreWindows": "none",
"workbench.startupEditor": "none",
"workbench.colorTheme": "Dracula",
"editor.formatOnSave": true,
"editor.minimap.enabled": false,
"editor.fontSize": 20,
"editor.fontFamily": "Dank Mono",

Content Authenticity Initiative


Example of payload using js-sdk library, using React hooks

Implementation

    const sampleImage = 'https://js-sdk.contentauthenticity.org/c2pa-samples/CAICAI.jpg';
    const imageProvenance = useProvenance(sampleImage);

Learning Goals

After this lesson, you will be able to:

  • Understand what Passport is and how it's used in web applications.
  • Configure Passport as a middleware in our application.
  • Allow users to log in to our application using Passport Local Mongoose.
  • Create protected routes.
  • Manage errors during the login process using the connect-flash package.
  • Allow users to logout from our application using Passport.
@diurivj
diurivj / Uses.md
Last active January 9, 2020 16:52
This file have all the tools that I use for web development and other stuff.
@diurivj
diurivj / MongoDB_Installation.md
Last active November 10, 2019 17:16
This is the MongoDB's recommended way to install MongoDB Enterprise Server.

MongoDB Installation

1. Download the files from MongoDB's page:

MongoDB recommends to use the most complete version of MongoDB Server, in order to do this, we will download MongoDB Enterprise. Download the package for your SO in TGZ format.

2. Extract the files:

$ tar -xvzf [name-of-the-file.tgz]
@diurivj
diurivj / README.md
Last active October 24, 2019 23:13
Best Practices for Github 😎🔥

Github's Profile

Profile Photo

A picture with a friendly smile can help recruiters make a connection with you but it isn’t mandatory. If you’re not using a picture of yourself be sure to include a picture that somehow captures your personality. But nothing crude.

General Information

Below is some general information and a link to his email and twitter profile. Recruiters can look through your tweets to get a sense of the things you are interested in.

Repositories

@diurivj
diurivj / Javascript.gif
Last active October 24, 2019 23:08
JavasScript ❤️
Javascript.gif
@diurivj
diurivj / ad.md
Last active October 8, 2019 15:27

React | Hooks

Learning Goals

After this lesson you will be able to:

  • Understand what are React Hooks and why are so hot 🔥
  • Understand how to use useState()