Using NodeJS || Express || Axios || EJS to create a server call API public weather. Link OpenWeather
This section should list any major frameworks/libraries used to bootstrap your project. Leave any add-ons/plugins for the acknowledgements section. Here are a few examples.
-
[EJS-url]
After cloning project do this to load the web server
- npm
npm install npm@latest -g
- Get a free API Key at https://openweathermap.org/
- Clone the repo
git clone https://github.com/TRKUyen/Use_Public_API_NodeJS.git
- Install NPM packages
npm install
- Enter your API in
server.js
const API_KEY = 'ENTER YOUR API';
- Run localhost:3000 in
server.js
open with terminalnodemon server.js
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request