Socialify

Folder ..

Viewing README.md
31 lines (19 loc) • 873.0 B

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Server README

This README provides an overview of the `server.ts` file, which is an Express server designed to serve static files, handle error logging, and provide instructions for running it using the Bun JavaScript runtime.

## `server.ts` Overview ℹ️

The `server.ts` file includes the following features:

- Express server setup
- Static file serving to serve files from the `dist` directory 📂
- Error logging for server-side errors 📝

## Installation and Running 🛠️

To run the server, follow these steps:

1. Clone this repository to your local machine 📦

2. Install project dependencies:

   ```bash
   bun install
   ```

3. Start the server:

   ```bash
   bun run server.ts
   ```

- The server will start running on <http://localhost:${PORT}> by default. You can modify the `PORT` .env variable to change the port in `server.ts` as needed.