프로그래밍 95

Keeper.js 2 - how to use arrow function and prop in your project

index.js import React from "react"; import ReactDOM from "react-dom"; import App from "./components/App"; ReactDOM.render(, document.getElementById("root")); //Challenge. Render all the notes inside notes.js as a seperate Note //component. note.js const notes = [ { key: 1, title: "Delegation", content: "Q. How many programmers does it take to change a light bulb? A. None – It’s a hardware proble..

프로그래밍/Web 2024.05.02

Authentication Level 4 - Hide your Secrets with Environment Variables

//.env file SESSION_SECRET="TOPSECRETWORD" PG_USER="postgres" PG_HOST="localhost" PG_DATABASE="secrets" PG_PASSWORD="123456" PG_PORT="5432" // solution.js // Not code written by me. This is example code import express from "express"; import bodyParser from "body-parser"; import pg from "pg"; import bcrypt from "bcrypt"; import passport from "passport"; import { Strategy } from "passport-local"; ..

프로그래밍/Web 2024.04.12