From 24d3c7fcbd87e2aaf15c1c5b3c3582ace0263629 Mon Sep 17 00:00:00 2001 From: Nathaniel Tampus Date: Sun, 19 Mar 2023 20:43:16 +0800 Subject: [PATCH] update readme --- README.md | 25 +++++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 5761a2e..6a46a80 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ -# chessu [![Deployment status](https://img.shields.io/github/deployments/nizewn/chessu/Production?label=deployment)](https://ches.su) [![MIT License](https://img.shields.io/github/license/nizewn/chessu?color=blue)](https://github.com/nizewn/chessu/blob/main/LICENSE) +# chessu [![Deployment status](https://img.shields.io/github/deployments/nizewn/chessu/Production?label=deployment)](https://ches.su) -> ❗ This project is still in the early stages of development and should be considered unstable. Expect bugs and weird behavior. +> ❗ This project is still in the early stages of development. Expect bugs and incomplete features. Yet another Chess web app. Live demo at [ches.su](https://ches.su). @@ -19,7 +19,9 @@ This project is structured as a monorepo using npm workspaces, separated into th - `server` - Node/Express.js application for the back-end, deployed to [server.ches.su](https://server.ches.su). - `types` - Shared type definitions for the client and server. -### Scripts +For separate deployments, you may exclude the `client` or `server` directory. However, you should include the `types` folder as it contains shared type definitions that are required by both packages. + +
Scripts

```sh # install all dependencies, including eslint and prettier for development @@ -27,8 +29,9 @@ npm install # concurrently run frontend and backend development servers npm run dev # -w client/server to run only one +``` - +```sh # for separate production deployments npm install -w client npm install -w server @@ -40,9 +43,9 @@ npm start -w client npm start -w server ``` -For separate deployments, you may exclude the `client` or `server` directory. However, you should include the `types` folder as it contains shared type definitions that are required by both packages. +

-### Environment variables +
Environment variables

You may create a `.env` file in each package directory to set their environment variables. @@ -65,3 +68,13 @@ PGUSER=exampleuser PGPASSWORD=examplepassword PGDATABASE=chessu ``` + +

+ +## Contributing + +Pull requests are welcome. For feature changes or suggestions, please open an issue first for discussion. + +## License + +[MIT](https://github.com/nizewn/chessu/blob/main/LICENSE)