A NodeJs GraphQL server which allows you to look up a country by name and returns the full name, population and a list of its official currencies including current exchange rate to SEK.
- Node.js
- Typescript
- GraphQL
- Git
- Express
- Mocha, chai and supertest
- Json Web Token
- Postman
You will need Node.js (version 14 and above) and a node global package installed in your environment.
-
Just go on official Node.js website and download the installer. Also, be sure to have
git
available in your PATH,npm
might need it (You can find git here). -
$ sudo apt install nodejs $ sudo apt install npm
-
You can find more information about the installation on the official Node.js website and the official NPM website. If the installation was successful, you should be able to run the following command.
$ node -v v14.17.5 $ npm -v 6.14.14
$ git clone https://github.com/lawrecks/countries-api.git
$ cd countries-api
$ npm install
- Create a file named
.env
in the project root directory - Add the environment variables as described in the
.env.example
file
$ npm run dev
$ npm test
Postman: https://documenter.getpostman.com/view/10148336/UVsJvmNg
Give a ⭐️ if you like this project!
Copyright (c) 2021 Ugochukwu Ejiogu