DontStopPrograming / DontStopPrograming/Backend_standard

Create: Initial Express Server Setup

Aperta
#1 1 commento 0 reazioni 1 assegnatario Rivendicata da @DontStopPrograming Vedi su GitHub
good first issue
Lingua principale
TypeScript
Stelle
0
Fork
0
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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'.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.