atomino / project
atomino project boilerplate
Installs: 159
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 1
Open Issues: 0
Type:project
Requires
- ext-curl: *
- ext-gd: *
- ext-json: *
- ext-readline: *
- ext-sockets: *
- atomino/bundle-attachment: dev-master
- atomino/bundle-authenticate: dev-master
- atomino/bundle-authorize: dev-master
- atomino/bundle-comment: dev-master
- atomino/bundle-created: dev-master
- atomino/bundle-debug: dev-master
- atomino/bundle-guid: dev-master
- atomino/bundle-typed-field: dev-master
- atomino/bundle-updated: dev-master
- atomino/carbon: dev-master
- atomino/core: dev-master
- atomino/gold: dev-master
- atomino/mercury: dev-master
This package is auto-updated.
Last update: 2024-11-12 14:40:25 UTC
README
Requirements
- php 8.0;
- ext-gd
- ext-curl
- ext-mbstring
- php-mysql
- mysql 8.0
- composer 2
Optional
- node 15.14.0
- npm 7.7.6
- apache 2.4
Create project
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 frometc/public
to thevar/public
folder
Frontend
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 theetc/public
folder- to make it work you need to publish is to
var/public
- to make it work you need to publish is to
Fonts
(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
toetc/public
bin/publish.sh
Run and test with the built-in server
- 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
Setup apache
- Run
bin/vhost
,- It copies
etc/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.