Skip to content

This API has 5 end points where the first 3 are for authentication and the other 2 return one or all countries for a given string

Notifications You must be signed in to change notification settings

Mhdez221993/countries_api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Restcountries API

This API has 5 end points where the first 3 are for authentication and the other 2 return one or all countries for a given string

  • /api/v1/auth/signup --> signup takes name, email and password and save them to postgrestsql on heroku.
  • /api/v1/auth/login --> login takes email and password and authenticate the user returning a token.
  • /api/v1/auth/logout --> logout destroy the user session by removing the token from the cookies.
  • /api/v1/countries/search-all --> search-all return all the contries tha match a givent string.
  • /api/v1/countries/search-one --> search-one return one contriy tha match a givent string.

api

Built With

  • Node
  • Jest
  • JWT
  • Supertest

Getting Started

To get a local copy up and running follow these simple example steps.

Run in your terminal git clone git@github.com:Mhdez221993/restcountries_api.git

Start the app

npm run dev

Start studio to check the user been saved in the database

npm run studio

Run some test

npm run test

Helpful links

Authors

👤 Moises Hernandez

Contributing

Contributions, issues, and feature requests are welcome!

Feel free to check the issues page.

Show your support

Give a ⭐️ if you like this project!

Acknowledgments

  • To the jobsqd for providing the test project

About

This API has 5 end points where the first 3 are for authentication and the other 2 return one or all countries for a given string

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published