Coder Social home page Coder Social logo

bertrandconxy / demopedia Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 114 KB

Demopedia is a web app that provides demographic data of different countries. Users can perform CRUD operation to database. That means Reading and Adding new countries, Updating and Deleting countries.

License: MIT License

JavaScript 99.73% CSS 0.27%
appolloclient appolo-server expressjs graphql mongodb mongodb-atlas mongoose nextjs tailwindcss

demopedia's Introduction

Demopedia

๐Ÿ“— Table of Contents

๐Ÿ“– [Demopedia]

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.

๐Ÿ›  Built With

Tech Stack

Client
Backend & Server

Key Features

  • GraphQL interface
  • View Country demographic
  • Creating, Updating and Deleting country data

(back to top)

๐Ÿš€ Live Demo

Not yet deployed

(back to top)

๐Ÿ’ป Getting Started

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

Prerequisites

In order to run this project you need:

  • Nodejs
  • Yarn
  • MongoDB Atlas

Setup

Clone this repository to your desired folder:

  cd my-folder
  git clone https://github.com/BertrandConxy/Demopedia.git

Install

Install this project with:

  cd Demopedia
  npm install

Usage

GraphQL API Server

MongoDb Atlas Set up

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

Testing GrapQL API

If you run the above url while the server is running, it will open up Apollo server sandbox:

client-test

Running the Frontend

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
Quick Preview

Demopedia

Run GraphQL query Tests

To run tests, run the following command:

  npm run test

๐Ÿ‘ฅ Authors

๐Ÿ‘ค Bertrand Mutangana Ishimwe

(back to top)

๐Ÿ”ญ Future Features

  • View more info about the country
  • Display Demographic data in charts

(back to top)

๐Ÿค Contributing

Contributions, issues, and feature requests are welcome!

Feel free to check the issues page.

(back to top)

โญ๏ธ Show your support

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 ๐Ÿ˜Ž

(back to top)

๐Ÿ™ Acknowledgments

  • I would like to thank Microverse

(back to top)

๐Ÿ“ License

This project is MIT licensed.

(back to top)

demopedia's People

Contributors

bertrandconxy avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.