Skip to content

HimanshuP90/Design-Pattern-JavaScript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Design-Pattern-JavaScript

A pattern is a reusable solution that can be applied to commonly occurring problems in software design

Tech Stack -

ES6 Express, JavaScript

vanila javascript

Enzyme

IIFE: Immediately Invoked Function Expression

Nginx setup:

You need to add below config file by the name test.com in the /etc/nginx/sites-available/ directory. It's required as Authentications won't work on localhost , so we we make nginx proxy server test.com to pxoxy to our local server. Also we need to change etc/hosts file to alias test.com as localhost. sudo service nginx restart

For mac nginx default location is different - sudo ln -s /usr/local/etc/nginx/sites-available/test.com /usr/local/etc/nginx/sites-enabled/test.com. Also in mac dont forget to change default nginx port to 80 , and add sites-enabled in HTTP object

http {
    include       mime.types;
    include /usr/local/etc/nginx/sites-enabled/*;
    ...

Also add 127.0.0.1 test.com in your /etc/hosts

server {
    server_name   test.com;
    root /home/{username}/path-to-repo/build/public;

    access_log /var/log/nginx/test.access.log;
    error_log  /var/log/nginx/test.error.log;
    underscores_in_headers on;
    location /   {
        proxy_pass http://localhost:3000;
    }
}

After copying the configuration you need to create a symbolic link with this command in your terminal. Assuming that your config file name is test.com

sudo ln -s /etc/nginx/sites-available/test.com /etc/nginx/sites-enabled/test.com

Learn More

About

JS notes on design pattern, promise, event loop & debounce.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published