Skip to content

Neats29/Founders-and-Coders-Notes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 

Repository files navigation

Some lessons and tips I've learnt so far at Founders & Coders


Git workflow

This is a helpful git tutorial by Atlassian.


sudo! Super User Do

When you try to install applications, modules etc, you sometimes get asked to use the following example command

sudo install

Doing this will give the app/module access to all your files, which is a privacy issue. You should not have to do this most of the time.

If you have installed something using sudo, you may want to reclaim ownership of your directory. To do this you need to run the following command:

sudo chown -R $(whoami) ~/.npm

In the future it would help to try and figure out the error rather than giving in to using sudo.

More info:

Stack Overflow


General JS info

A useful link to a wide range of JavaScript resources - Specially the Reading section: JS: The Right Way


Reduce and Map methods

A helpful video to learn the reduce and map methods in JavaScript:


Node.js

A useful link to get started on making a server in Node.js


To run a quick server

npm install node-http-server

Then when you need to run server run the following command:

http-server -p <port number>

React.js

A basic beginners tutorial for React.js, a front-end JavaScript library made by facebook.


Alternative to forking

IF you want to use a repo on github to then add to it without eventually pushing to it (as you would when you fork), then you have do the following:

  1. create an empty repo on github
  2. clone the repo you want to copy (let's call this the parent repo)
  3. cd into the parent repo and run the command:
git push --mirror https://github.com/USER/CHILD-REPO.git 

Mirroring only duplicates the repo but you are still connected to the parent, if you want to be separate from it do:

git remote set-url origin https://github.com/USER/CHILD-REPO.git

Now you can start working in the child repo. (This technique is useful for using starter kits to build your project on top of).

About

Useful lessons learnt at F&C and links

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published