Before you install silvie, you need to make sure Node.js has been installed on your computer. It is always a good habit to have the latest version.
So verify your installation by running these two commands in Terminal or CMD. They will show you the installed
version of your
You may see different results when you run these command, but it is okay. You can check the latest version on official Node.js website.
You've got two options to install Silvie on your machine: using a creator package, or installing it manually in your project.
The creator package is a npm package called create-silvie-app built for this case. It will create a project for you from a boilerplate template. It also creates some basic models, controllers and database migrations to get you going from there.
The shortcut for executing npm packages is the
npx command. It will execute the binaries from npm packages, even if
they were not downloaded before. NPX is coming with the NPM package, so you don't need to install anything.
Otherwise, if you are going to use this package more often, you can install this package globally on your machine.
This will add the package to your globally installed npm packages, and then you can just create a Silvie app by running one of these commands.
Now you should see a directory with the name
APP_NAME that you have written after the command. Now just
cd to that
directory and start the application.
You need to have a node project first. If you have created your empty project, just go to step 1.
A node project is a directory with a valid
If you don't know how to create a node project, the next command should help.
As the first step you have to add silvie package to your project dependencies.
This command will install the latest version of silvie in your projects
Now you should create the initial directories and files. Make sure your structure matches the one introduced in Directory Structure chapter.
Also, you can run this command to make silvie check everything for you and reports you the missing parts of project:
Or easily create the missing parts by running this command:
Now that you have installed silvie, start the app by running the following command: