dconco / php_slides

Slides to the next level in PHP using PhpSlides, a light MVC fast framework
MIT License
20 stars 4 forks source link

how do we start the server? #26

Closed hazeezet closed 5 months ago

kigemmanuel commented 9 months ago

PhpSlides works together with any PHP server. Like xampp, so it doesn't has its own server... Run xampp server where the slides project is been created then follow the localhost link on the browser, that's all, you've runned the project. Also if the slides project is ready to be hosted, you can host it as you host normal PHP hosting

hazeezet commented 9 months ago

Where is the entry point

As far as I know, there is always an index file where it is. Or am I missing something?

kigemmanuel commented 9 months ago

"It's working with routes in the routes directory, and there's no index.php in the root directory of the project

kigemmanuel commented 9 months ago

"After you've run the project on a server, follow the URL, can be http://localhost:8080 it'll show the default dashboard page as the main page which is registered in the route.php file inside the route folder in the root of the project... Can register new routes too. You can read the documentation in the README.md file for more details"

hazeezet commented 9 months ago

Which command? That is exactly what I'm asking, how to run.

Kindly add how to in the readme.

To run any server, you need an entry point, where is it?.

Or kindly show on a video

kigemmanuel commented 9 months ago

It's working with routes in the routes directory, and there's no index.php in the root directory of the project

daveconco commented 9 months ago

"After you've run the project on a server, follow the URL, can be http://localhost:8080 it'll show the default dashboard page as the main page which is registered in the route.php file inside the route folder in the root of the project... Can register new routes too. You can read the documentation in the README.md file for more details"

daveconco commented 9 months ago

@hazeezet The command you're talking about...

Create a project with this command with your terminal in any directory you want

composer create-project dconco/php_slides project-name

Or instead download the released version from GitHub or clone the project directly

Then move directory to the project name on terminal

cd project-name

And run composer install

But make sure you've composer already installed on your terminal

Then use your PHP server to start the project using Apache and follow the localhost then you'll see the dashboard

hazeezet commented 9 months ago

I have issues running it that's why I ask. I have everything. I need an entry point of the application

If I run the folder through xampp, the page that will show is just listing the files.

Where is the index file or an entry point of the application

That is what I'm asking

hazeezet commented 9 months ago

Kindly provide a working video

Thank you

daveconco commented 9 months ago

Ok please can you inbox me on FB. Send Message