- 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
mysqldatabase for your project (utf-8) bin/mkvardir.sh- creates thevardirectory structure- give permissions to the webserver to write the whole
vardirectory bin/atomino mig:init- initializes the migrationsbin/atomino mig:migrate- do the first migration (users)bin/publish.sh- copy all files frometc/publicto thevar/publicfolder
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/adminnpm install
- Build your code
npm run dev- development build with watch, compiles directly into thevar/publicfolder- or
npm run build- production build, it compiles into theetc/publicfolder- 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@fontsourceandfontawesome(pro/free) fromnode_moduelstoetc/publicbin/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
etc/vhostfolder tovar/vhost - and Updates the
rootanddomainvariables in thevhost.conffile based on theatomino.ini
- It copies
- Include the
var/vhost/vhost.confin yourhttpd.conforapache2.conffile - Reload / restart apache
- Open the
http://my-project.localhostin your browser - There is a built-in solution for https, but you can setup your vhost as you like.