Let's start our journey by configuring a new Electron project and naming it markdown-editor since we are building a markdown editor application. You can create a corresponding folder with the following commands:
mkdir markdown-editor
cd markdown-editor
As you may recall from Chapter 1, Building Your First Electron Application, we need to initialize a new project with the npm init command. You should also install electron, the core library that provides an application shell. In addition, your project needs an electron-builder library, which allows you to publish and distribute features for multiple platforms. Let's get started:
- Run the following commands to set up a new project:
npm init -y
npm i -D electron
npm i -D electron-builder
The npm init command should generate a package.json file with the following content:
{
...