An open API service indexing awesome lists of open source software.

https://github.com/charles-dr/discord-auth-for-unity

Node API for Discord Login
https://github.com/charles-dr/discord-auth-for-unity

discord-js nodejs socket-io typescript

Last synced: 2 months ago
JSON representation

Node API for Discord Login

Awesome Lists containing this project

README

          

# NodeJS API Example

## Tech Stacks
- Node.js
- Express.js
- Typescript

## How to Run

### Configuration
- Install Packages

```bash
npm install
```

- Port

Before running the server, you can configure the port in .env

```bash
cp .env.example .env
```

The default port is 3000.

### To run on local machine

```bash
npm run dev
```

### Test

```bash
npm run test
```

### Build

```bash
npm run build
```

### Deploy to Heroku

```bash
heroku login # if you didn't login to heroku.
heroku create # one time only
npm run deploy:heroku
```

## Reference

- [How to tie socket.io width express an TypeScript?](https://stackoverflow.com/questions/66686377/how-to-tie-socket-io-width-express-an-typescript)