mirror of
https://github.com/kou029w/_.git
synced 2025-01-30 13:58:08 +00:00
1.2 KiB
1.2 KiB
kita
Installing the project
Run the following command to install the project:
npm install
Running in development mode
Run the following command to start the server in development mode:
npm run dev
You can now open your browser and navigate to http://localhost:1227
.
Building for production
Run the following command to build the project:
npm run build
Run the following command to start the server in production mode:
npm start
You can now open your browser and navigate to http://localhost:1227
.
Running tests
You can run the tests using the following command:
npm test
Environment variables
Environment variables are loaded from a .env
file in the root of the project. These are the available
variables:
# Port and host for the server
PORT=1227
HOST=0.0.0.0
Linting and Formatting
You can run the following commands to lint and format your code:
# Formats your code
npm run format
# Lints your code
npm run lint
# Lints and fixes your code
npm run lint:fix
# Lints your code in CI mode
npm run lint:ci