Archiwalny serwer bazujący na TypeScript'cie
- Wrzuc Steam API Key do
src/api/steam/steamApi.tsisrc/api/liveserver/callForSubsLiveserverFetcher.ts - Ustaw dane logowania bazy MySQL w
src/utils/liveServerDatabaseUtils.ts - Ustaw dane API LiveServera w
src/storage/InformationStorage.ts - Ustaw dane logowania konta Steam (dla bota) w
src/steam/steamBot.ts
This project was bootstrapped with Create React App. Then an Express server was added in the server directory. The server is proxied via the proxy key in package.json.
-
Clone the project, change into the directory and install the dependencies.
git clone https://github.com/philnash/react-express-starter.git cd react-express-starter npm install -
Create a
.envfile for environment variables in your server.touch .env
-
Start the server
You can start the server on its own with the command:
npm run server
Run the React application on its own with the command:
npm start
Run both applications together with the command:
npm run dev
The React application will run on port 3000 and the server port 3001.
The twilio branch is a similar setup but also provides endpoints with basic Access Tokens for Twilio Programmable Chat and Twilio Programmable Video. You can use the project as a base for building React chat or video applications.