- php 8.0;
- ext-gd
- ext-curl
- ext-mbstring
- php-mysql
- mysql 8.0
- composer 2
- node 15.14.0
- npm 7.7.6
- apache 2.4
composer create-project atomino/project your-project -s dev
- Configure your project within the installer
- Create a
mysql
database for your project (utf-8) bin/mkvardir.sh
- creates thevar
directory structure- give permissions to the webserver to write the whole
var
directory bin/atomino mig:init
- initializes the migrationsbin/atomino mig:migrate
- do the first migration (users)bin/publish.sh
- copy all files fromassets/public
to thevar/public
folder
This project uses svelte as frontend framework. Frontend project can be found in the frontend
folder.
These are separate projects - each of those has it's own root folder - embedded into your application.
- You should install the dependencies:
cd frontend/admin
npm install
- Build your code
npm run dev
- development build with watch, compiles directly into thevar/public
folder- or
npm run build
- production build, it compiles into theassets/public
folder- to make it work you need to publish is to
var/public
- to make it work you need to publish is to
(npm required)
There is a built-in solution for fontawesome
and all @fontsource
fonts to handle.
cd frontend/admin
(or any other frontend directory)npm run fonts
- this copies all@fontsource
andfontawesome
(pro/free) fromnode_moduels
toassets
bin/publish.sh
- Run the logger server:
bin/log.sh
- Run the development server:
bin/dev.sh
- Open website in browser:
http://my-project.localhost:8080
- You should see an atom
- Open gold admin in the browser:
http://admin.my-project.localhost:8080
- user:
atomino@atomino.atom
- pass:
atomino
- user:
- Test the api in a browser:
http://api.my-project.localhost:8080/user/1
- You should see a json
- Try it with the Chrome Json Formatter extension
- Run
bin/vhost
,- It copies
assets/vhost
folder tovar/vhost
- and Updates the
root
anddomain
variables in thevhost.conf
file based on theatomino.ini
- It copies
- Include the
var/vhost/vhost.conf
in yourhttpd.conf
orapache2.conf
file - Reload / restart apache
- Open the
http://my-project.localhost
in your browser - There is a built-in solution for https, but you can setup your vhost as you like.