@rasenganjs/serve
v1.2.1
Published
Production application server for Rasengan
Readme
Rasengan Serve
@rasenganjs/serve is a simple utility to launch your Rasengan.js application in production mode. It serves the built application from the dist directory, ensuring a smooth and optimized deployment.
Installation
To use @rasenganjs/serve, install it as a dependency in your project:
npm install @rasenganjs/serveUsage
After building your application with Rasengan.js, you can start the production server using the rasengan-serve command.
Start the production server
Define the serve command
{
"scripts": {
"serve": "rasengan-serve ./dist"
}
}Run the serve command
npm run serveThis will start a server that serves your application from the dist folder.
Options
Currently, @rasenganjs/serve provides a default configuration for serving your built project. Future updates may include additional options for customization.
Custom port
You can specify a custom port for the server by using the --p or --port option:
npm run serve -- -p 3000or
pnpm run serve -p 3000The -p option stands for port, and allow you to specify a custom port for the server by replacing the default port 4320 for production server.
Learn more on the Documentation website.
Community
The Rasengan.js community can be found on GitHub Discussions where you can ask questions, voice ideas, and share your projects with other people.
We also have a Twitter account where you can follow us to get the latest news about Rasengan.js.
License
Rasengan.js is MIT licensed.
Authors
Here is the authors list:
- Dilane Kombou (@dilanekombou)
