Giter VIP home page Giter VIP logo

news-server's Introduction

News API Server Side

Brief description

A small server to get last news from https://newsapi.org


Clone this repository

Using HTTPS:

git clone https://github.com/manuelczs/news-server.git

Install dependencies

*You need to have NPM and Node.js installed on your PC


When cloning finished, navigate to the folder news-server typing:

cd your-folder-path/news-server

and then type:

npm install

to install all dependencies


Set up a .env file

After you've installed dependencies create a .env file and put on it the PORT variable (ex: PORT=3000) and in API_KEY the api key you've got from https://newsapi.org

It looks something like this:


.env

PORT=3000
API_KEY=yOurApIKEyExAmplE

Running server

Now you can run the server:

npm run start

This script will run the server at the following address:

https://localhost:3000

Finally test the server

Now you can test the server using a browser or Postman with the address https://localhost:3000


Screenshots

Screenshot from 2021-07-13 20-24-49

news-server's People

Contributors

manuelczs avatar

Stargazers

Roman avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.