DontStopPrograming / DontStopPrograming/Backend_standard

Create: Initial Express Server Setup

Đang mở
#1 1 bình luận 0 reaction 1 người được giao Được @DontStopPrograming nhận Xem trên GitHub
good first issue
Ngôn ngữ chính
TypeScript
Star
0
Fork
0
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

Set up the initial Express server with the following configurations:

1. Import the necessary modules:

- EXPRESS for creating the server
- CORS for enabling Cross-Origin Resource Sharing
- DOTENV for loading enviroment variables

2. Initialize and Express application.

3. Apply middleware:

- Use CORS middleware to handle CORS

4. Configure the server to listen on a port:

- The PORT should be taken from the enviroment variables, with a fallback to '3002' but basic '3000' if not specified

5. Add a simple message to log when 'the server is running'.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.