GithubHelp home page GithubHelp logo

esraa-alaarag / zootopia-api Goto Github PK

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

The Government of Zootopia API : contains information about Zootopia citizins

Home Page: https://zootopia-api.herokuapp.com/

JavaScript 77.21% CSS 3.42% HTML 19.37%
zootopia api nodemon nodejs postgres morgan cors pg-promise

zootopia-api's Introduction

app-logo

Table of Contents

  1. App description
  2. User Stories
  3. Visual representation of the database
  4. Pseudocode
  5. Technologies used
  6. Ways to see the project

Zootopia is an application for Zootopia Embassy that helps people who apply to renew their passport to track their passport renewal process.

This project consists of three parts:

1.Zootopia API:

This app works as Restful API to store all Zootopia citizens information and provide the embassy with detailed information on every citizen. This API provides.

  • Basic CRUD (Create, Read, Update and Delete) with postman.

  • Cross-origin Resource Sharing using by using CORS middleware.

2.Embassy of Zootopia app:

This part is for the official use of the embassy staff. The embassy staff can import the applicant information from the government API and store it to the embassy database. they can add the date the application was received and update the status of the application and the date when the status was updated.

Also this part serve as API for Zootopia citizen APP. Zootopia citizen AP make axios get Request to this API to get the status of the application.

3.Zootopia citizen APP:

A customized HTML template for the citizen of Zootopia to check the status of their passport renewal application.

Applicants can enter their social security number to check the status of their passport.

  • As a user, I want to be able to view all the people’s information in the database
  • As a user, I want to be able to view one person’s information using social security number.
  • As a user, I want to be able to add a person to the database through postman.
  • As a user, I want to the social security number to be unique and get error message if I want to add person with social security number that is already exist.
  • As a user, I want to be able to change person’s information in the database through postman.
  • As a user, I want to see the API instruction

Creating Zootopia Government database

  • Design tables, relations, primary keys and foreign keys for each table.
  • Create schema file
  • seed the database using the schema file
  • Create government API using express and node.js with full crud functionality
    • Create: POST: add one citizen to the database using postman

    • Read: GET: get all citizens information or get one only by using the citizen’s social security number through the browser

    • Update: PUT change one citizen’s information using postman

    • Delete: DELETE one citizen from the database using social security number

database

Core Stack:

  • Node
  • Express
  • PostgreSQL
  • HTML
  • CSS
  • JavaScript
  • jQuery
  • Heroku
  • Git

Middleware:

  • nodemon
  • pg-promise
  • axios
  • cors
  • Bootstrap
  • Morgan

Also

  • Trello
  • Postman (API and DB testing)
  • Postico

Live Deployment of App: https://zootopia-api.herokuapp.com/

Download Project & Install

  1. Git clone and download this project]
  2. Create a PostgreSQL database called 'Zootopia'
  3. On your terminal, run psql -d zootopia -f schema.sql
  4. npm install
  5. npm run dev, app should be available on localhost

Go Back to the Table of Content

zootopia-api's People

Contributors

esraa-alaarag 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.