Skip to content

Instantly share code, notes, and snippets.

View AlexMercedCoder's full-sized avatar
🎯
Focusing

Alex Merced AlexMercedCoder

🎯
Focusing
View GitHub Profile
@AlexMercedCoder
AlexMercedCoder / mongosnippets.md
Last active December 21, 2023 04:56
Mongo-Snippets

Connecting to Mongo Server with MongooseJS

// import mongoose
const mongoose = require("mongoose")
// read your .env
require("dotenv").config()

// GET YOUR DATABASE_URL VARIABLE FROM YOU .ENV - mongodb://username:password@myhost.com/mydatabasename
const DATABASE_URL = process.env.DATABASE_URL
@AlexMercedCoder
AlexMercedCoder / express-how.md
Last active December 13, 2023 13:52
Express Cheatsheet

Intro to the Backend

Web works via browsers and servers.

  • Users type in urls, click on links, submit forms
  • The browsers sends a request
  • a server receives the request and responds
  • may response with html, files, json, etc.

Servers can be written in javascript with a javascript run time, and there are three of them:

@AlexMercedCoder
AlexMercedCoder / git.md
Last active August 9, 2023 00:45
Git Cheatsheet

Basics

Creating a new repository in the current working directory

git init

see what files are and arent in staging

git status

REST

REspresentational State Transfer

What is Rest?

REST is an architectural pattern for designing API (Application Programming Interface).

Basically?

  • What routes should I make
  • What should those routes do
@AlexMercedCoder
AlexMercedCoder / readme.md
Last active January 11, 2023 14:47
Git Command Cheatsheet

Terminology

  • a repo: a folder whose files and subfolders are being tracked in on commit chain

  • staging: files that have been marked to be included in the next commit

  • commit: a snapshot of files in the repo marking all changes in staged files since the last commit

  • remote: a repo hosted elsewhere that receives commits from your local repo via pushes and can send your local repo commits via pull

@AlexMercedCoder
AlexMercedCoder / readme.md
Last active January 21, 2023 21:16
Groun Developer Workflow Guide

Group Work Developer Guide

So your going to be working in a group to develop a small application, this guide will help walk your through the basic steps to get setup as a group for good progress as a group.

Some helpful videos:

Step 1 - Planning

@AlexMercedCoder
AlexMercedCoder / readme.md
Last active November 21, 2022 17:46
Preparing For Software Developer Technical Interviews

Preparing For Software Developer Technical Interviews

In this document you'll find a collection of resources and advice to help preparing for different aspects of a technical interview.

Improving Your Computer Science Knowledge

You don't need to be a computer science genius but there are somethings to get familiar with to truly "talk the talk". You can learn a lot of this from my computer science playlist below.

@AlexMercedCoder
AlexMercedCoder / readme.md
Last active November 2, 2022 15:26
ExpressJS Cheatsheet

ExpressJS Cheatsheet

ExpressJS is a backend NodeJS framework. Node has HTTP server functionalities built in but using them can be a little tricky and doing even the most basic things can be quite cumbersome, for example:

// Import http library
const http = require("http")
// use env variable to define port with default
const PORT = process.env.PORT || 4000
@AlexMercedCoder
AlexMercedCoder / readme.md
Created July 16, 2022 20:18
Web Development Glossary
  • Abstraction: Something that simplifies the complexities of something else to make it easier to use without the need to understand how it works.

  • Server: Application running on a network that takes request and generates a response. Often, these responses are either HTML web pages or data JSON format.

  • Client: Application that is made to create requests to servers and then render the response into something usable for the user. A internet browser is a client application that let's you send requests to web servers and render the html in the response as a visual webpage.

  • Web Browser: A desktop or mobile application that is for sending requests to web servers to get back a particular web site or web application.

  • Web Application: A software application written to be consumed via a web browser

@AlexMercedCoder
AlexMercedCoder / readme.md
Last active October 31, 2023 17:13
Things to help prepare for Full Stack Development Bootcamp

Intro

Bootcamps can be intense and fast paced but anyone at any level can succeed in them, especially if they make the commitment and do some prep beforehand which makes the experience a lot less intense so you can focus on the quality of your work versus just keeping up.

Making the Commitment

Regardless of the length of your particular bootcamp, during that time anything you can take off your plate should be taken off your plate so you can accomodate at least 3 hours for doing homework, practice and research for every 8 hours of class time.

  • if your doing 40 hours of class per week, you should expect minimum 15 hours of out of class work per week.
  • If your doing 16 hours of class per week, you should expect minimum 6 hours of out of class work per week.