A Basic server for Ward
Report Bug
·
Request Feature
A basic server using connect and server-static to serve Ward projects.
- Install ward-server
# npm
npm install ward-server
# Yarn
yarn add ward-server- Clone this repository
git clone https://github.com/ward-framework/ward-server.git- Install dependencies
# npm
npm install
# Yarn
yarn addGet your server running in 3 steps
// Include the package
const Server = require('ward-server');
// Create a Server instance
const server = new Server({
path : "/src", // Path to your ward project directory
});
// Serve files
server.serve();This project is developed by a somewhat beginner javascript developer, help is always welcome. Do not hesitate to contribute to the project.
- Fork the Project
- Create your Feature or Fix Branch (
git checkout -b feature/Featureorgit checkout -b fix/Fix) - Commit your Changes (
git commit -m 'Add some feature or fix') - Push to the Branch (
git push origin feature/Featureorgit push origin fix/Fix) - Open a Pull Request
ward-server is distributed under the MIT License. See LICENSE for more information.
Colin Espinas - Website - contact@colinespinas.com
Project link: https://github.com/ColinEspinas/ward-server