Download:
fcf-example-planet.zip
Repository:
https://github.com/fcfdev/fcf-example-planet
Link to detailed description:
The first application and introduction to the templates
An introductory example of using templates in the FCF framework. This example introduces the basics of template design and the use of arguments.
For the example, a version of the FCF framework is required at least 1.1.48
- Install FCF framework (https://fcf-framework.tk/download/fcf/install)
-
Go to the example directory
$ cd [PROJECT] -
Initialize the sample database
$ fcfmngr create-db ./fcf-example-planet.js $ mysql -u [USER] -p fcf-example-planet < dbdump.sql If access to the mysql user is performed only from the system superuser, you need to use sudo when invoking the fcfmngr command
-
And run
$ fcfserver server.json -
Wait until all modules and packages are installed. When everything is ready, the terminal will display an inscription:
Listening started with port 8080 Listening started :: with port 8080 - Open your browser at localhost:8080