update readme
This commit is contained in:
23
README.md
23
README.md
@@ -4,29 +4,10 @@
|
|||||||
|
|
||||||
Online 2-player chess. Live demo at [ches.su](https://ches.su)
|
Online 2-player chess. Live demo at [ches.su](https://ches.su)
|
||||||
|
|
||||||
- React 18
|
- React (Remix)
|
||||||
- CSS Modules
|
- Tailwind CSS
|
||||||
- [react-chessboard](https://github.com/Clariity/react-chessboard)
|
- [react-chessboard](https://github.com/Clariity/react-chessboard)
|
||||||
- [chess.js](https://github.com/jhlywa/chess.js)
|
- [chess.js](https://github.com/jhlywa/chess.js)
|
||||||
- Express.js
|
- Express.js
|
||||||
- socket.io
|
- socket.io
|
||||||
- PostgreSQL
|
- PostgreSQL
|
||||||
|
|
||||||
## Development
|
|
||||||
|
|
||||||
This repository is used for production deployments. You will need to make changes to the configuration to get this running locally.
|
|
||||||
|
|
||||||
```sh
|
|
||||||
npm install # install all dependencies
|
|
||||||
|
|
||||||
npm run dev # concurrently run frontend and backend dev servers
|
|
||||||
|
|
||||||
npm run react-dev # run frontend server only
|
|
||||||
```
|
|
||||||
|
|
||||||
### Environment variables
|
|
||||||
|
|
||||||
Client: `APIURL` (or just change `apiUrl` in `/client/src/config/config.ts`)
|
|
||||||
|
|
||||||
Server: `PORT`, `SESSION_SECRET`, `PGUSER`, `PGPASSWORD`, `PGHOST`, `PGDATABASE`, `PGPORT`
|
|
||||||
(also see server cors config and session middleware for local development)
|
|
||||||
|
|||||||
Reference in New Issue
Block a user