Skip to content

Instantly share code, notes, and snippets.

View JairoDuarte's full-sized avatar
😎
In action

Alfredo Jairo Duarte JairoDuarte

😎
In action
View GitHub Profile
@JairoDuarte
JairoDuarte / gist:ec7e79c3635e05853b4a926635c414f6
Created November 30, 2020 10:45 — forked from Jbot29/gist:b84e5e2c6275d963f7f6
Ecommerce User Stories + Steps

#User Stories - Overview

  1. Authentication: User can signup/login/logout

  2. Items for sale: User can view lists of items for sale and search by name, filter by price.

  3. Shopping Cart: User can add items to shopping cart and the app remembers it next time you login. User can view all the items in their shopping cart. User can delete items in the shopping cart. Shopping cart uses an integer column to store "state".

  4. Checkout: User can fill in form and submit billing info. After submitting billing info, items in the shopping cart will move to a different "state".

@JairoDuarte
JairoDuarte / mongo-error-code.ts
Created November 7, 2020 14:20 — forked from rluvaton/mongo-error-code.ts
Mongo Error Code #mongo #ts
// Generated from https://github.com/mongodb/mongo/blob/master/src/mongo/base/error_codes.err
// Extra not including
// class_error not inserted
export enum MongoErrorCode {
OK = 0,
INTERNAL_ERROR = 1,
BAD_VALUE = 2,
OBSOLETE_DUPLICATE_KEY = 3,
NO_SUCH_KEY = 4,
GRAPH_CONTAINS_CYCLE = 5,

MongoDB Cheat Sheet

Show All Databases

show dbs

Show Current Database

@JairoDuarte
JairoDuarte / deploying.md
Created December 15, 2018 18:08 — forked from cedricium/deploying.md
How to Deploy `codyseibert/tab-tracker` (Vue / Express Fullstack Web App)

How to Deploy tab-tracker

Heroku:

Prerequisites:

The following will need to be known / obtained before getting started:

  • Node.js and npm
  • command-line (cli) / terminal
  • Heroku account
  • Heroku CLI installed and setup with your Heroku account
@JairoDuarte
JairoDuarte / app.py
Created June 17, 2018 20:42 — forked from seanbehan/app.py
Flask with Django ORM
'''
Run the following commands (bc. gists don't allow directories)
pip install flask django dj-database-url psycopg2
mkdir -p app/migrations
touch app/__init__.py app/migrations/__init__.py
mv models.py app/
python manage.py makemigrations
python manage.py migrate
@JairoDuarte
JairoDuarte / README-Template.md
Created March 19, 2018 16:50 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites