Demopedia is a Full stack web app which enables users to view countries demographic data. On top of that, they can perform CRUD operations on the database. Backend is implemented using the MongoDb Atlas, Apollo Server and GraphQL API. The Frontend is implemented using Next.js and Apollo Client.
Client
Backend & Server
- GraphQL interface
- View Country demographic
- Creating, Updating and Deleting country data
Not yet deployed
To get a local copy up and running, follow these steps.
In order to run this project you need:
- Nodejs
- Yarn
- MongoDB Atlas
Clone this repository to your desired folder:
cd my-folder
git clone https://github.com/BertrandConxy/Demopedia.git
Install this project with:
cd Demopedia
npm install
You will need DB URI to connect to the database. After setting up the MongoDb Atlas:
- Create
.env
file. - Assign db URI to the DB_URI environment variable
Run the server:
npm run server
You will get The following output:
🚀 Server ready at http://localhost:4000/api/countries
Database connection successful!
seed data was added successfully
If you run the above url while the server is running, it will open up Apollo server sandbox:
While the server is running, open another terminal and change the directory to frontend
:
cd frontend
Install all the packages:
npm install
Run the development server:
npm run dev
To run tests, run the following command:
npm run test
👤 Bertrand Mutangana Ishimwe
- GitHub: @BertrandConxy
- Twitter: @Bconxy
- LinkedIn: Bertrand Mutangana Ishimwe
- View more info about the country
- Display Demographic data in charts
Contributions, issues, and feature requests are welcome!
Feel free to check the issues page.
If you like this project, please don't hesitate to contact me so that we can see how we can improve it and please give it a star 😎
- I would like to thank Microverse
This project is MIT licensed.