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.
- Node
- Jest
- JWT
- Supertest
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
npm run dev
npm run studio
npm run test
- Crafting authentication schemes with Prisma in Express
- Hashing passwords in NodeJS with bcrypt
- How to Build an Authentication API with JWT Token in Node.js
- cors compatibility
- forms-validation
👤 Moises Hernandez
- GitHub: @Mhdez221993
- Twitter: @MoisesH42060050
- LinkedIn: Moises Hernandez Coronado
Contributions, issues, and feature requests are welcome!
Feel free to check the issues page.
Give a ⭐️ if you like this project!
- To the jobsqd for providing the test project