website for cats and solenoids, made using phenomic beta 0.21.1
Phenomic require at least Node.js@^4.2.0 / npm@^3.0.0 or yarn@^0.15.1. We recommend you to use nvm to manage different versions of node.
A minimal phenomic-theme-base is required, in order to provide you some flexibility. A command will set it up for you.
🚀 With those instructions, you should have a new clean project, that will magically open itself in your browser!
First thing to do is to create a folder with a node_modules
so we can install
Phenomic locally.
Tip: you can edit your-website-folder
in the text box below.
DIR=your-website-folder
mkdir "$DIR" && cd "$DIR" && mkdir node_modules
Now we will be at the right place so we can grab Phenomic & launch the setup. Right after that, we will grab required dependencies & you are good to go!
npm install phenomic && ./node_modules/.bin/phenomic setup
npm install && npm start
or with yarn
yarn add phenomic && ./node_modules/.bin/phenomic setup
yarn install && yarn start
The following instructions are made to run with cmd or Powershell only.
First thing to do is to create a folder with a node_modules
so we can install
Phenomic locally.
Tip: you can edit your-website-folder
in the text box below.
SET DIR=your-website-folder
mkdir %DIR% && cd %DIR% && mkdir node_modules
Now we will be at the right place so we can grab Phenomic & launch the setup. Right after that, we will grab required dependencies & you are good to go!
npm install phenomic && .\node_modules\.bin\phenomic setup
npm install && npm start
or with yarn
yarn add phenomic && .\node_modules\.bin\phenomic setup
yarn install && yarn start
🚀 When you get the hello world, it's time to take a look at our Getting Started page and to start hacking!.
That's an easy step.
DIR=your-website-folder
mkdir "$DIR" && cd "$DIR"
You will need to install Phenomic first, to generate the required phenomic-theme-base. You can install Phenomic from npm to get latest stable version, or install it from git to get latest bleeding edge updates.
By installing it locally, you ensure that several projects can rely on different versions of Phenomic. Anyway, Phenomic will probably not work installed globally.
mkdir node_modules
This command is to be sure that phenomic will be installed in the current
folder, otherwise, npm might try to install it in a parent folder until it
finds a node_modules
or a package.json
, up to your HOME folder.
npm install phenomic
or with yarn
yarn add phenomic
--save[-dev]
is useless because there is nopackage.json
yet. This will be be handled by the setup command below.- You can ignore error about missing
package.json
and warnings about missing peer dependencies.
To install from git, you will need to get some deps to transpile sources
npm install babel-cli babel-preset-react babel-preset-env babel-preset-stage-1 babel-plugin-flow-react-proptypes
npm install https://github.com/MoOx/phenomic.git
or with yarn
yarn add babel-cli babel-preset-react babel-preset-env babel-preset-stage-1 babel-plugin-flow-react-proptypes
yarn add https://github.com/MoOx/phenomic.git
Notice: This step will create (and overwrite) any existing package.json
.
./node_modules/.bin/phenomic setup
After you answer some questions, your project is ready.
Tip: You can open package.json
and adjust some values to fit your needs.
Check out Configuration for more information about the configuration options.
When you are done the setup, it's time to get all dependencies.
npm install
or if using yarn
yarn install
yarn will install some peer dependencies for you; by doing this we ensure that you control the dependencies that you are using. This way you are totally aware of what you use and are not locked in to using packages that you don't want to.
Now it's time to...
npm start
or if using yarn
yarn start
It's that simple.
This command calls the start
command from the scripts
section of your
package.json
.
As you can see this will execute phenomic start
command that will load the
configuration and run the development mode.
Now just wait for your browser to show up (yes this development mode should open your development server in your favorite browser).
🚀 When you get the hello world, it's time to take a look at our Getting Started page and to start hacking!.