Skip to content

yazan-alshekha/express_server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Express server

Technologies used :

  • Nodejs with express freamwork
  • postgressql with sequelize ORM tool

How to use this server :

  1. download the repository
  2. npm install to install all the dependencies
  3. run your database server
  4. create a database it's called "yazan-alshekha"
  5. create a .env file as a copy from .env.sample file
  6. nodemon to run your nodejs server

Third party API:

https://restcountries.com/v3.1/all

API's :

to get the data from the api provided and save the response to our database.

Note : we should hit it only one time to avoid duplicate the data inside the database

http://localhost:3000/seed

Get all countries

Examples :

Get country currencies by CCA2

Example :

Group countries API

Examples :

Download_countries_file API :

Note : you need to add aheader (X-ADMIN=1) to be authorised admin

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published