neutomic/skeleton

A minimal Neutomic project recommended to create simple web applications

Installs: 16

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 3

Forks: 2

Open Issues: 0

Type:project

dev-main 2024-06-07 04:31 UTC

This package is auto-updated.

Last update: 2024-09-07 04:58:35 UTC


README

This is a skeleton project for Neutomic. It is a simple project that demonstrates how to use Neutomic to build a simple web application.

Getting Started

To get started, clone this repository and run the following command:

compser install

This will install all the dependencies required to run the project.

Running the Project

To run the project, run the following command:

php src/main.php http:server:start

This will start the server on port 8080. You can access the server by visiting http://localhost:8080 in your browser.

Server Clustering

To utilize server clustering, which dispatches multiple workers each running a server:

php src/main.php http:server:cluster

The command will dispatch n workers, where n is the number of CPU cores on your machine.

Alternatively, specify the number of workers:

php src/main.php http:server:cluster --workers=4

This will start the server cluster with 4 workers, each handling incoming requests concurrently.

More Information

For more information on how to use Neutomic, please visit the Neutomic Documentation.

License

This project is licensed under the MIT License - see the LICENSE file for details.