Create a New Project

Create a new directory:

1
2
mkdir react-dojo
cd react-dojo

Make it a Git repo:

1
git init

Make it a Node package. You can skip through the options it gives you.

1
npm init && npm install

This will create a package.json file and node_modules directory at the root of your project.

Let’s create a source directory.

1
mkdir source

And finally a .gitignore containing the following:

1
2
3
node_modules
*.log
build

Conclusion

You should now have a project directory which looks something like:

1
2
3
4
5
./react-dojo/
├── node_modules
├── source
├── .gitignore
└── package.json
Edit on GitHub