Coder Social home page Coder Social logo

zopsmart-gofr-project's Introduction

Zopsmart GoFr Project

A Simple GoFr Mini Project built by a Go Getter (Stocks Management API) !! 1_dX7_Le4fztcY0QGbuk6KWA

Net Requirements:

Build a simple HTTP (REST) API using GoFr-- (Stocks API)

1. CRUD Operations: Build APIs for create, read, update and delete operations for all entities

  • Create ✅

  • Read ✅

  • Update/Delete ✅

2. DB Integration: The API should have integration with database for persistence of data. Any SQL or NoSQL DB, which has a freely available docker image, may be used

  • Database Creation ✅

  • Integration using Gofr ✅

3. Unit Tests: A minimum of 60% unit test coverage is desired

  • All CRUD op represent approximate unit test coverage ✅

  • Try to incorporate a real-world scenario while implementing the project. ✅

    • The real world scenario involves Stock Management API where user can retrieve details in relation with STOCKS. ✅

Extra Points

  • Unit Test Coverage > 90%

  • Postman collection for trying out the APIs(partially done) ❗✔️

  • Sequence diagrams, UML diagrams ✅

  • Subtle Front-End components provided for easy understanding ✅


[[ The following sequence diagram represents the outline of the API as complexity of the entire application and the interactions with the gofr package and the database is not possible here. ]]
![SEQ diag](https://github.com/galvinguy2002/Zopsmart-GoFr-Project/blob/main/img/seq.png)
--> Additional UML Diagram for visual understanding :
![UML diag](https://github.com/galvinguy2002/Zopsmart-GoFr-Project/blob/main/img/UML.png)

How to Run the Stock API:

Prerequisites:

  • Ensure you have Go installed on your system. If not, you can download and install it. FOLLOW IN ORDER
  1. Clone the Repo

    • Clone the repository containing the Go code for the Movie Management API.
  2. Install Dependencies:

    • If your project has any external dependencies, use the following command to install them.
    go get ./...
    -->gofr
    -->npm packages (if req)
    -->go mod tidy/go mod init for tracking
  3. Build and Run:

    • Build and run the main.go file. go run main.go
    
    This will start the API server, and it will be accessible at `http://localhost:8000`.
    
    
    
  4. Testing with Postman:

    • Install Postman to test the API endpoints.
    • Use Postman to send HTTP requests to the API at http://localhost:8000/stock for testing CRUD operations.

Prerequisites For FrontEnd

Make sure you have the following installed on your machine:

Installation

  1. Clone the repository:

    git clone https://github.com/galvinguy2002/Zopsmart-GoFr-Project
  2. Navigate to the project directory:

    cd stocks-management-app
  3. Install dependencies:

    npm install

Running the Application

To stat the React development server, use the following command:

npm start

🎉 Thanks

Built with :
Golang & GoFr
HAPPY CODING :)

WITH REGARDS TO THE ZOPSMART TEAM
Harshvardhan Saxena
20104064
[email protected]
Jaypee Institute of Information Technology(JIIT), Noida

zopsmart-gofr-project's People

Contributors

galvinguy2002 avatar

Watchers

 avatar

zopsmart-gofr-project's Issues

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.