This project was generated with the Angular Full-Stack Generator version 3.7.6.
// install these first use node 14 and python 2.7.18 https://tecadmin.net/install-nvm-macos-with-homebrew/#:~:text=1%20How%20To%20Install%20NVM%20on%20macOS%20with,what%20Node%20versions%20are%20available%20to%20install.%20
https://www.freecodecamp.org/news/python-version-on-mac-update/
-
Run
npm install
to install server dependencies. -
Run
bower install
to install front-end dependencies. -
Run
grunt serve
to start the development server. It should automatically open the client in your browser when ready.
Run grunt build
for building and grunt serve
for preview.
Run Prod Build docker build -t chronopin -f Docker/Dockerfile .
Or
Run Dev Build docker build -t chronopin-dev -f Docker/Dev.Dockerfile .
Run Prod docker run --rm -p 9000:9000 --name chronopin --env-file Docker/env.prod.list chronopin
Or
Only mounts client and server folders for development
Run Dev docker run --rm -p 9000:9000 --name chronopin-dev --env-file Docker/env.dev.list -v $(pwd)/server:/code/server -v $(pwd)/client:/code/client chronopin-dev
Run docker login
Or
Run docker login -u 123wowow123 -p <my secret password>
Run docker tag chronopin 123wowow123/chronopin:latest
Run docker push 123wowow123/chronopin:latest
Run docker image pull docker.io/library/123wowow123/chronopin:latest
Run docker-compose up
to build and serve site on localhost:9000
Run docker-compose down
to shut it down
Open shell that's logged in to the manager node
Run docker stack deploy -c docker-compose.yml chronopin
To remove run docker stack rm chronopin
Run docker container rm -f $(docker container ls -a -q)
to stop and remove all docker containers
Run docker rmi $(docker images -q)
to remove all docker images
Run docker container exec -i -t chronopin /bin/sh
to open shell inside of running container
Run exit
after exec -i -t
to exit TTY
Run docker rmi <IMAGE ID>
to remove image from local system
Run docker container attach quotes
to attach our Terminal's standard input, output, and error
To quit the container without stopping or killing it, we can press the key combination Ctrl+P Ctrl+Q
. This detaches us from the container while leaving it running in the background. On the other hand, if we want to detach and stop the container at the same time, we can just press Ctrl+C
.
Run docker system df
to see docker disk space usage
Run docker image prune --force --all
to remove all images that are not currently in use on our system
Run kubectl create secret docker-registry regcred --docker-server=https://index.docker.io/v1/ --docker-username=123wowow123 --docker-password=<password> [email protected]
to create a regcred as a Kubernetes cluster uses the Secret of docker-registry type to authenticate with a container registry to pull a private image.
Run kubectl get secret regcred --output=yaml
to inspect the Secret regcred
Run kubectl get secret regcred --output="jsonpath={.data.\.dockerconfigjson}" | base64 -D
to convert .dockerconfigjson field to a readable format and view credetials
Run minikube start
Run -kubectl create configmap env-config --from-file=kube/
-
Run kubectl create configmap env-file --from-env-file=Docker/env.dev.list
Run kubectl get configmaps env-file -o yaml
Run kubectl delete configmap env-config
Run kubectl delete configmap env-file
Run kubectl create -f pod.yaml
to create a pod
Run kubectl logs -f chronopin-pod
to see logs
Run kubectl get pods
to check if pods have been created
Run kubectl delete po/chronopin-pod
to delete created pod
Run kubectl exec -it chronopin-pod -c chronopin /bin/sh
Run kubectl exec -it chronopin-pod -- /bin/bash
Run wget -qO - localhost:9000
Run node
process.env
to get env variables
Run kubectl get pods
kubectl exec -it chronopin-pod<guid> -- /bin/sh
nslookup chronopin-pod<guid>
Run kubectl create -f kube/deployment.yaml
to deploy all
Run kubectl describe deployment
Run kubectl delete deployment chronopin-dep
First time run chmod +x ./kube/deploy.sh
& chmod +x ./kube/clean.sh
to set execute permission
Run ./kube/deploy.sh
to deploy deployment and services
Run ./kube/clean.sh
to clean deployment and services
Run to start rolling update
kubectl set image deployment/chronopin-dep \
chronopin=123wowow123/chronopin:latest
Run to check rollout status
kubectl rollout status deploy/chronopin-dep
Run rollout undo
to undo rollout
Run kubectl create -f web-service.yaml
Run minikube service chronopin-lb --url
to check url
Run minikube service chronopin-lb
to open in browser
Run kubectl get services
Run IP=$(minikube ip)
Run curl -4 $IP:<port>/
port is equal to NodePort value
Run kubectl delete svc/chronopin-web
Run kubectl proxy
Run
export POD_NAME=$(kubectl get pods -o go-template --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}')
echo Name of the Pod: $POD_NAME
Run
curl http://localhost:8001/api/v1/namespaces/default/pods/$POD_NAME/proxy/
Run rm -rf ~/.minikube
minikube start
to reinstall minikube
Run minikube dashboard
to open the Kubernetes dashboard in a browser
Run ssh -p 50000 [email protected]
Run ssh -p 50000 -i chronopin_docker.pub -v [email protected]
Run npm run create:db
for create tables and stored procedures
Run npm run create:data
for adding data
Run npm run backup:data
for backing up data
Run npm run remediate:data
for remediation of data
Run node --inspect-brk server/index.js
for debugging Node
Run node --inspect-brk scripts/db/index.js
for debugging Node :: create:db
Run node --inspect-brk scripts/data/index.js --save
for debugging Node :: backup:data
Run node --inspect-brk scripts/data/index.js --seed
for debugging Node :: create:data
Run node --inspect-brk scripts/search/index.js --delete --index=pins
for debugging Node :: delete:search:pins
Clear NPM's cache
sudo npm cache clean -f
Install a little helper called 'n'
sudo npm install -g n
Install latest stable Node.js version
sudo n stable
Check Node.js version
node --version
Run this from the command line:
node -p "process.arch"
ECHO %PROCESSOR_ARCHITECTURE%
It will return 'arm', 'ia32', or 'x64'.
Install npm install -g npm-check-updates
Run npm-check-updates
to list what packages are out of date
(basically the same thing as running npm outdated
)
Run npm-check-updates -u
to update all the versions in your package.json (this is the magic sauce)
Run npm update
as usual to install the new versions of your packages based on the updated package.json
Install npm install -g npm-check-updates
Run ncu -m bower
to list what packages are out of date
Run ncu -m bower -u
to update all the versions in your bower.json (this is the magic sauce)
Run bower update
as usual to install the new versions of your packages based on the updated bower.json
npm install [email protected] --save-dev --arch=ia32
Running npm test
will run the unit tests with karma.
Public holidays eg: http://kayaposoft.com/enrico/json/v1.0/?action=getPublicHolidaysForYear&year=2020&country=usa Rise & set times for the Sun and the Moon, twilight start & end, day length, moon phases, and more. eg: https://www.timeanddate.com/services/api/
Calendar Clock Icon Clock-icon Blue clock Icon
https://codepen.io/collection/HtAne/ https://codepen.io/ChainsawBaby/pen/xbogNZ https://codepen.io/hexagonest/pen/waaGqj https://codepen.io/jonitrythall/pen/dNJRRK
https://www.anker.com/ https://images.template.net/wp-content/uploads/2015/07/Timeline-Web-Element-Template-PSD.jpg http://www.grubstreet.com/ https://flipboard.com/ https://news360.com/home Use of top banner news feed: http://www.latimes.com/entertainment/arts/la-et-cm-hammer-made-paggett-wiegmann-20180606-story.html
https://elements.envato.com/web-templates/email-templates
Equinoxes, Solstices, Perihelion, and Aphelion: http://aa.usno.navy.mil/data/docs/EarthSeasons.php https://github.com/barrycarter/bcapps/blob/master/ASTRO/solstices-and-equinoxes.txt.bz2
https://nationaldaycalendar.com/march/
-
Youtube pin with time location
- Get closed caption text
- Pass playing video time to drilldown view
- Play from beginning button
- Timeline auto play one video after another
- Show movie trailers usages
- Scrape YouTube using something like: Reader.js
- Set YouTube time range
-
Drilldown Sumery
- Sentiment
- Summerize (or Use reading mode to show full article)
- Mini timeline for multiple date point articles (highlight date mined for mini timeline)
- Add other annotations to article
- Historically happens on date
- RSS/Atom summary
-
Google Map
- Localize pins in area
- Show distance
- https://sandiego.eater.com/2017/12/11/16761732/menya-ultra-ramen-japanese-restaurant-mira-mesa
-
Tag
-
Auto suggest tokenized tag in tag field
-
ML suggest tag
-
Add personal timeline column with composition of tag
-
Home page with single popular timeline with flyout tag cloud
-
Trackable Variable per timeline
-
Then use ML to try to predict it once enough pins exist for sub (eg: price)
-
Filter by like threashold
-
Faceted Search bubbles like Bing
-
Fix watch pins board
-
SSL
-
facebook login check for fbid and matching email in system to get user
-
Put location in place of "THE PIN GANG" and use google mapping cordinates
-
Stacking/grouping of related pins
-
Amazon/Ebay product cross referencing
-
Neo4j / Marklogic
-
Reminder Aside Menu by date sections
- Sectional grouping on the bottom https://www.bing.com/images/search?view=detailV2&ccid=Qz5ylXJX&id=DE79D5F3DD2FE17F2542FE2F74C1163AC546B6F2&thid=OIP.Qz5ylXJX6FmKOGL7rsaBzwAAAA&mediaurl=http%3a%2f%2forgjunkie.com%2fwp-content%2fuploads%2f2016%2f04%2fReminders-app.png&exph=650&expw=366&q=reminder+app&simid=608026157405111055&selectedIndex=225&ajaxhist=0 https://www.bing.com/images/search?view=detailV2&ccid=Qz5ylXJX&id=DE79D5F3DD2FE17F2542FE2F74C1163AC546B6F2&thid=OIP.Qz5ylXJX6FmKOGL7rsaBzwAAAA&mediaurl=http%3a%2f%2forgjunkie.com%2fwp-content%2fuploads%2f2016%2f04%2fReminders-app.png&exph=650&expw=366&q=reminder+app&simid=608026157405111055&selectedIndex=225&ajaxhist=0 https://www.bing.com/images/search?view=detailV2&ccid=K4SNUA5w&id=EB2F67702626BA4754DEBE73062FF73D98C88888&thid=OIP.K4SNUA5wdr1AIr8Ac4LfaAAAAA&mediaurl=http%3a%2f%2fa3.mzstatic.com%2fus%2fr30%2fPurple71%2fv4%2f4f%2f10%2faf%2f4f10af0e-ec9e-210e-f53c-62c42d63c45b%2fscreen696x696.jpeg&exph=696&expw=392&q=reminder+app&simid=607992622330676635&selectedIndex=770&ajaxhist=0 https://www.bing.com/images/search?view=detailV2&ccid=C3mXxt8Q&id=0AE073778932A6B23CA9542B7B24A2796CD57848&thid=OIP.C3mXxt8QSMmBHdR8S4TSuQHaMW&mediaurl=https%3a%2f%2flh3.googleusercontent.com%2fTK2tG4ci4kbOy9BPz8o88ohQDOUR2Cpo07bk05MERRhw8jgC95F5KXXZF-O3-yo7WEs%3dh900&exph=900&expw=540&q=reminder+app&simid=608050170612222716&selectedIndex=93 https://www.bing.com/images/search?view=detailV2&ccid=02xN%2bVaI&id=A3188565487997B0E1AFB447FC0156441FECBB42&thid=OIP.02xN-VaISVatDExN5BiimgAAAA&mediaurl=http%3a%2f%2fa1.mzstatic.com%2fus%2fr30%2fPurple127%2fv4%2f52%2ffa%2fdf%2f52fadfe0-04de-8924-9178-b8920102e7b7%2fscreen696x696.jpeg&exph=696&expw=392&q=reminder+app&simid=608011172316253708&selectedIndex=249 https://www.bing.com/images/search?view=detailV2&ccid=Puea8PZt&id=7EC1A129853AB342972F331E720A8F140ECDC010&thid=OIP.Puea8PZtmHSKlBaLFVd-1QHaNL&mediaurl=https%3a%2f%2flh4.ggpht.com%2fkSVYScpGNgwoH2vsTKla23eN4jnjT_kkZS3kxe6KYQE-hMgjI6doZxLDYojQ1Fph_38j%3dh900&exph=900&expw=506&q=reminder+app&simid=607993687487089105&selectedIndex=340
-
Faceted Navigation that slides in one by one from the left in bubble blocks (https://alistapart.com/article/design-patterns-faceted-navigation)(https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-post-filter.html)
- Plot pins on map relative to a specified date time and draw drill map time arrow indicating possible itinerary
- Save and share itinerary (https://travefy.com/pro?km_marketing=homepage)
- Serve ads for hotels to flights to cruise
- See who else is going in your network
- If flight information is entered or flight booked through site then delays and be tracked and shared
- Read book for more ideas
- review algebra, linear algebra, analysis, stat, calculus, graph theory in that order -- https://www.pinterest.com/mathematicsprof/
- Amazon Price Scrape
- eBay Price Scrape
- Address Scrape
- Weather of location for that date
- Weather of your location for that date
- Movie Rotten Tomato scrape
- As you type in a url a bottom horizontal scrollable pin list will show up for closely matched existing pins. There you can immediately track or upvote
- Editing image will delete image so make sure it's marked deleted in join table ++
- Add price on contract icon
- Add Free Cost Text rather then $0
- Extract scaper code to new project
- Follow other people and get notified when they post
- GeoHash grid aggregation of close events during breakdown of 1/3/5/10 days
- Extract scrape core selector in config file
- Pin feed needs to include if user have clicked on watch/like per min exclude deleted
- Change Medium.type to NVarChar
- General Sentiment Graph for a Company or Product
- Search (Amazon) to buy product to support our website
This is a promotional article about one of the company partners with Interesting Engineering. By shopping with us, you not only get the materials you need, but you’re also supporting our website.
- Add pin group and can see iteniary map view and invite people for each location (support open invitation where anyone can join and buy tickets).
-
Activated Google Analytics / Facebook upgrade to non development mode
-
Flat design http://www.androidcentral.com/ http://spectrum.ieee.org/
-
Check out upcoming side calendar https://cafeastrology.com/astrologyof2017horoscopes.html
-
provides horoscope info for sun signs such as Lucky Number, Lucky Color, Mood, Color, Compatibility with other sun signs, description of a sign for that day etc. https://aztro.readthedocs.io/en/latest
-
add flyout for different types of like (on time). Watch should show modal to add or select grouping pin will live in
-
Add unique constraint on like and favorite so one user can like / favorite a pin once
-
promise return null to suppress warnings
-
Unit / Integration test on User and Pin model
-
Change readFileSync to Async in scrape code to load scrape file or cache it
-
Prevent user from posting the same pin of same url more then once
-
Pin save should be wrapped in transaction
-
format money with comma's on pin form
-
Socket io updates - like will replace pin causing flicker ++
-
cancel scraping button ++
-
add edit ability to scraping modal ++
-
Create watch view ++
-
inherit main and watch view ++
-
extract timeline into directive ++
-
pin page media query
-
facebook / tweet like button and counter need to show / move watch to top right of image
-
scrape alt text for image and save
-
get title in header bound correctly per page
-
linking on watch/link and being redirected to login should fulfill request after logged in
-
Extract GA code in auth.service.js into it's own module
-
GA: Outbound link / non-interaction events / Social Interactions tracking / User Timings / set clientId on tracker creation
-
searching on anything other then main page should bring you to main page
-
multiline description support
-
Accessory feature listing below main pin
-
Side panel for favorite events: https://cafeastrology.com/articles/daysoftheweek.html
-
convert to use jQuery.scrollTo https://github.com/flesler/jquery.scrollTo
-
Chinese Lunar Calendar (Nong Li)
-
display error banner on create page when failed scrape
-
add holiday and perforated placeholder block for holiday and special events
-
search with infinit scroll
-
check scrolling to the end as link header is not responsed
-
Extract scrapping js to own repo and used typescript
-
side info panel with summation of 'tagged' categories of items and mode/median/mean
-
Add tags and allow upvoting of existing tags to gain meta data for search engine to process +
-
search feature bug / show tag button when searched to jump to different section like pinterest +++
-
show pixel dimention / size via tooltip?? of scraped image
-
Add FB privacy policy page
-
https://developers.facebook.com/apps/560731380662615/settings/basic/
-
facebook comment jumps @ pin page
- Externalize image processing to AWS Lamda
- Externalize pre render to AWS Lamda
- Add Redis to serve prender pages
- Convert to React
- Grafana activity dashboard
- [Use Firebase DB for denormalized push notification of app data] https://www.youtube.com/watch?v=LAWjdZYrUgI
- GeoLite2 City: IP => City / lat:long
- Cache main query and improve load time https://www.patterns.dev/posts/prpl/ https://web.dev/rendering-on-the-web/
- When in specific pin view and clicking logout will show blank screen
- Date tag mobile view broken
- Fix loading jumpiness
- Youtube!!
- Create page image redesign with image selection in right drawer
- Comment fix
- Login fix
- Script to refresh pins in semantic search
- Single Pin page similarity needs to be in timeline
- Favorite needs to be grouped in folders and make public/private
- Pinner should be able to add tags/groups to organize their pin
- Notification when other people comment on your post for comment reply
update client for youtube and twitter