Skip to content

PinkTaco97/express-rest-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A basic Rest API made with Node.js and Express.

Getting Started

Create an '.env' file with the following variables:

# Server Configuration
SERVER_PORT = 3000
SERVER_BASE_PATH = '/api'

# MYSQL Configuration
MYSQL_HOST = '127.0.0.1'
MYSQL_USER = 'root'
MYSQL_PASSWORD = ''
MYSQL_DATABASE = 'express_rest_api'
MYSQL_PORT = 3306

# JWT Configuration
JWT_SECRET = 'secret'
JWT_EXPIRATION = '1h'

Install the project dependancies using:

npm install

To run the server use:

npm run dev

About

A REST API with Node.js and Express

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published