Skip to content

FullstackCodingGuy/NodeJs-API-Vanilla

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-api-vanilla

A boilerplate API project for Node.js, Express, and a few more batteries.

Getting Started

Flavours

Prerequisites

  • Node.js (v14 or higher)
  • npm (v6 or higher)

Installation

  1. Clone the repository:
    git clone https://github.com/FullstackCodingGuy/node-api-vanilla.git
  2. Navigate to the project directory:
    cd node-api-vanilla
  3. Install the dependencies:
    npm install

Running the API

Start the server:

npm start


The server will be running at http://localhost:8000.

API Endpoints
GET / - Returns "Hello, World!"
GET /health - Returns "I'm Good!"

Run using Docker

  1. Clone the repository:

    git clone https://github.com/FullstackCodingGuy/node-api-vanilla.git
    cd node-api-vanilla
    
  2. Build the Docker image:

    docker-compose build
    
  3. Run the application:

    docker-compose up
    
  4. Access the application:

    Open your web browser and navigate to http://localhost:8000 (or the port specified in your docker-compose.yml).

License This project is licensed under the MIT License - see the LICENSE file for details.

About

A boilerplate API project for Node.js, Express, and a few more batteries.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published