Giter Club home page Giter Club logo

node-tutorials's People

Contributors

willrstern avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

node-tutorials's Issues

Es6 Destructing Syntax in lecture 9 routing

Hi Will,
First of all thanks for all the great Tutorial and everything really.

Quick question about the destructive id assignment in users.js

  .get("/:id", (req, res) => {
    const { id } = req.params;
    const user = users.find(user => user.id == id);

    if (user) {
      res.send(user);
    } else {
      res.status(404).send(`User ${id} does not exist`);
    }
  })

I'm using nodejs version 4.5 , but somehow when trying to use the node command here I always end up with an error message. Do you maybe know why?

const { id } = req.params;
      ^

SyntaxError: Unexpected token {

changing the /etc/ssh/sshd_config file

I have tried this a few times, but for video 28, the last thing that is done is to change the /etc/ssh/sshd_config file. When I do this the way you've explained in the video and on this repo, I can't get into my root@<ip_name>. The prompt says "Permission denied (publickey)". I've tried it twice doing exactly what is demonstrated, but the same thing each time. What should I do?

Running pm2 deploy production setup

When I run pm2 deploy production setup I get this in return

--> Deploying to production environment
--> on host 67.205.178.187
○ hook pre-setup
[email protected]'s password:
mkdir: cannot create directory ‘/Users’: Permission denied
mkdir: cannot create directory ‘/Users’: Permission denied
mkdir: cannot create directory ‘/Users’: Permission denied

setup paths failed

Deploy failed

Why does this happen?

Missing step

During 14-dynamic-views your tweets have a user id attached to them but I didnt see that step in the previous videos.

pm2 startup ubuntu

I'm following your example, but I get this when I enter pm2 startup ubuntu on the deploy

[PM2] Init System found: systemd

PM2 detected systemd but you precised ubuntu
Please verify that your choice is indeed your init system
If you arent sure, just run : pm2 startup

[PM2] You have to run this command as root. Execute the following command:
sudo env PATH=$PATH:/home/deploy/.nvm/versions/node/v8.1.4/bin /home/deploy/.nvm/versions/node/v8.1.4/lib/node_modules/pm2/bin/pm2 startup ubuntu -u deploy --hp /home/deploy

When I enter the sudo path just given it asks for my password and it returns this:

deploy is not in the sudoers file. This incident will be reported.

What am I doing wrong?

missing files from the video

The ".sh" files that are in the video are not included in this repository. I know we are not suppose to run those files, but it would be easier to have a quick look, rather than to go trough a video again.

pm2 issue

I'm following the instructions for using pm2 and when I enter pm2 startup ubuntu, I get this:

pm2 startup ubuntu
[PM2] Init System found: systemd

PM2 detected systemd but you precised ubuntu
Please verify that your choice is indeed your init system
If you arent sure, just run : pm2 startup

[PM2] You have to run this command as root. Execute the following command:
sudo env PATH=$PATH:/home/deploy/.nvm/versions/node/v8.1.4/bin /home/deploy/.nvm/versions/node/v8.1.4/lib/node_modules/pm2/bin/pm2 startup ubuntu -u deploy --hp /home/deploy
deploy@ubuntu-512mb-nyc1-01:~$ sudo env PATH=$PATH:/home/deploy/.nvm/versions/node/v8.1.4/bin /home/deploy/.nvm/versions/node/v8.1.4/lib/node_modules/pm2/bin/pm2 startup ubuntu -u deploy --hp /home/deploy
[sudo] password for deploy:
deploy is not in the sudoers file. This incident will be reported.

What should I do?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.