DontStopPrograming / DontStopPrograming/Backend_standard

Create: Initial Express Server Setup

Ouverte
#1 1 commentaire 0 réactions 1 personne assignée Réclamée par @DontStopPrograming Voir sur GitHub
good first issue
Langage dominant
TypeScript
Étoiles
0
Forks
0
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

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

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.