Skip to content

Progetto in TypeScript del server di Veplo

Notifications You must be signed in to change notification settings

tommaso-merlini/Veplo-ts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation


VEPLO-TS

β—¦ Veplo-ts: Ignite Innovation, Code Beyond Limitations!

β—¦ Developed with the software and tools below.

JavaScript HTML5 GraphQL YAML sharp Nodemon Axios MongoDB SemVer Lodash TypeScript tsnode Docker Buffer Stripe Express JSON

GitHub license git-last-commit GitHub commit activity GitHub top language

πŸ“– Table of Contents


πŸ“ Overview

The Veplo-ts project is a powerful solution leveraging Apollo Server to build efficient, scalable APIs using GraphQL. Its Dockerfile enables simplified deployment, making it an effective tool for streamlining web development. Its value lies in facilitating rapid API development and ensuring robust, flexible web applications.


πŸ“¦ Features

HTTPStatus Exception: 429


πŸ“‚ Repository Structure

└── Veplo-ts/
    β”œβ”€β”€ Dockerfile
    β”œβ”€β”€ apollo/
    β”‚   β”œβ”€β”€ apolloserver.ts
    β”‚   β”œβ”€β”€ context.ts
    β”‚   β”œβ”€β”€ formatError.ts
    β”‚   └── plugins.ts
    β”œβ”€β”€ brands.ts
    β”œβ”€β”€ codegen.yml
    β”œβ”€β”€ constants/
    β”‚   β”œβ”€β”€ brands.ts
    β”‚   β”œβ”€β”€ constants.ts
    β”‚   β”œβ”€β”€ filters.ts
    β”‚   └── italian.ts
    β”œβ”€β”€ dictionary.ts
    β”œβ”€β”€ docker-compose.yml
    β”œβ”€β”€ firebase/
    β”‚   └── firebase.ts
    β”œβ”€β”€ images/
    β”œβ”€β”€ loaderio-04cbc2e6e8994582817d57faa8742ee5.html
    β”œβ”€β”€ loadtest/
    β”‚   └── loaderio-04cbc2e6e8994582817d57faa8742ee5.html
    β”œβ”€β”€ magidoc.mjs
    β”œβ”€β”€ migration/
    β”‚   β”œβ”€β”€ 1.ts
    β”‚   └── 2.ts
    β”œβ”€β”€ mongoose/
    β”‚   β”œβ”€β”€ initMongoose.ts
    β”‚   └── scripts/
    β”‚       └── generateProducts.ts
    β”œβ”€β”€ nginx/
    β”‚   └── nginx.conf
    β”œβ”€β”€ package.json
    β”œβ”€β”€ spaces/
    β”‚   └── s3Client.ts
    β”œβ”€β”€ src/
    β”‚   β”œβ”€β”€ @types/
    β”‚   β”‚   └── @apollo/
    β”‚   β”œβ”€β”€ app.ts
    β”‚   β”œβ”€β”€ controllers/
    β”‚   β”‚   β”œβ”€β”€ BetterInputGenerator.ts
    β”‚   β”‚   β”œβ”€β”€ authenticateToken.ts
    β”‚   β”‚   β”œβ”€β”€ canSee.ts
    β”‚   β”‚   β”œβ”€β”€ checkConstants.ts
    β”‚   β”‚   β”œβ”€β”€ checkDiscount.ts
    β”‚   β”‚   β”œβ”€β”€ checkFirebaseErrors.ts
    β”‚   β”‚   β”œβ”€β”€ checkLotQuantity.ts
    β”‚   β”‚   β”œβ”€β”€ checkObjectID.ts
    β”‚   β”‚   β”œβ”€β”€ checkPostCode.ts
    β”‚   β”‚   β”œβ”€β”€ checkPriceV2BelowV1.ts
    β”‚   β”‚   β”œβ”€β”€ convertDateToString.ts
    β”‚   β”‚   β”œβ”€β”€ createPostCode.ts
    β”‚   β”‚   β”œβ”€β”€ dateDiffInDays.ts
    β”‚   β”‚   β”œβ”€β”€ deleteFromSpaces.ts
    β”‚   β”‚   β”œβ”€β”€ email/
    β”‚   β”‚   β”œβ”€β”€ errors/
    β”‚   β”‚   β”œβ”€β”€ generateCode.ts
    β”‚   β”‚   β”œβ”€β”€ getDiffs.ts
    β”‚   β”‚   β”œβ”€β”€ getRequestedFields.ts
    β”‚   β”‚   β”œβ”€β”€ getStandardItalianPrice.ts
    β”‚   β”‚   β”œβ”€β”€ getStatus.ts
    β”‚   β”‚   β”œβ”€β”€ greaterOrEqualThanZero.ts
    β”‚   β”‚   β”œβ”€β”€ handlePriceEdit.ts
    β”‚   β”‚   β”œβ”€β”€ handleUpdatedPhotos.ts
    β”‚   β”‚   β”œβ”€β”€ html/
    β”‚   β”‚   β”œβ”€β”€ mutations/
    β”‚   β”‚   β”œβ”€β”€ queries/
    β”‚   β”‚   β”œβ”€β”€ removeArticles.ts
    β”‚   β”‚   β”œβ”€β”€ removeBoughtQuantityFromVariation.ts
    β”‚   β”‚   β”œβ”€β”€ removeDuplicates.ts
    β”‚   β”‚   β”œβ”€β”€ reverseGeocoding.ts
    β”‚   β”‚   β”œβ”€β”€ streamToBlob.ts
    β”‚   β”‚   β”œβ”€β”€ stripe/
    β”‚   β”‚   └── uploadToSpaces.ts
    β”‚   β”œβ”€β”€ graphQL/
    β”‚   β”‚   β”œβ”€β”€ admin/
    β”‚   β”‚   β”œβ”€β”€ resolvers.ts
    β”‚   β”‚   β”œβ”€β”€ typeDefs.ts
    β”‚   β”‚   β”œβ”€β”€ types/
    β”‚   β”‚   └── user/
    β”‚   └── schemas/
    β”‚       β”œβ”€β”€ Business.model.ts
    β”‚       β”œβ”€β”€ Cap.model.ts
    β”‚       β”œβ”€β”€ Cart.model.ts
    β”‚       β”œβ”€β”€ Information.model.ts
    β”‚       β”œβ”€β”€ Order.model.ts
    β”‚       β”œβ”€β”€ Product.model.ts
    β”‚       β”œβ”€β”€ Shop.model.ts
    β”‚       └── User.model.ts
    β”œβ”€β”€ stripe/
    β”‚   └── stripe.ts
    β”œβ”€β”€ tsconfig.json
    └── yarn.lock

βš™οΈ Modules

Root
File Summary
yarn.lock The code forms a backend structure in Typescript for the "Veplo-ts" project, covering functionality for Apollo server configuration, context, error handling & plugins, constant definitions, Firebase integration, image handling, load testing, database migrations, Mongoose initialization, product generation, Nginx configuration, package dependencies, S3 client for AWS S3, and source controllers for app control and data checking & validation. Docker files for containerization are also included.
docker-compose.yml The code is a directory structure of a TypeScript-based application called'Veplo-ts'. It involves GraphQL for API calls with Apollo server and multiple controllers handling different functionalities. Firebase and Stripe integration is seen for the purpose of authentication and payment processing, respectively. Docker and nginx files indicate containerized deployment. Other codes manage the data with Mongoose ORM, mutations, and queries in databases. Additionally, the Docker Compose file builds an API service, restarts on failure, binds port 80 to 3000, and references an environment file.
brands.ts The provided code represents a JavaScript module that exports an array of brand names. It consists of a wide variety of different brand names, which can be imported into other parts of an application or system where they may be used for various purposes, such as populating a selection list, validating user input, or filtering results in a query.
dictionary.ts The provided code is part of the structure of a project called'Veplo-ts'. The structure includes various files related to backend features such as Apollo server, authentication, email handling, GraphQL, database models, error handling, constants, and database migration. The'dictionary.ts' file includes an exported dictionary of string arrays, potentially mapping different synonyms or translations of common terms used in the application.
magidoc.mjs The provided code is part of a larger project named Veplo-ts. It includes a range of functionalities such as Apollo Server setup, error formatting, plugins, various controllers (authentication, constants check, price checker, duplicacy removal etc.), MongoDB schemas, Firebase setup, Stripe payment setup, and Docker configurations. The'magidoc.mjs' file is utilized for generating API documentation, presenting details about GraphQL's types, mutations, and queries in a multi-page carbon template.
loaderio-04cbc2e6e8994582817d57faa8742ee5.html The code represents the directory structure of a Node.js application built with Apollo GraphQL server and Mongoose ORM. It contains functionalities for data loading, API testing, and server configuration as well as Firebase and Stripe integrations. Moreover, various utility controllers, GraphQL resolvers, type definitions and different data models are also defined. Docker files for containerization along with configuration for load testing and automatic code generation are present.
tsconfig.json HTTPStatus Exception: 429
codegen.yml HTTPStatus Exception: 429
package.json HTTPStatus Exception: 429
Dockerfile HTTPStatus Exception: 429
Migration
File Summary
2.ts HTTPStatus Exception: 429
1.ts HTTPStatus Exception: 429
Stripe
File Summary
stripe.ts HTTPStatus Exception: 429
createStripeAccount.ts HTTPStatus Exception: 429
refund.ts HTTPStatus Exception: 429
denyReturn.ts HTTPStatus Exception: 429
productsNotAvailableRefund.ts HTTPStatus Exception: 429
checkout.ts HTTPStatus Exception: 429
handleCheckoutCompleted.ts HTTPStatus Exception: 429
calculateApplicationFeeAmount.ts HTTPStatus Exception: 429
handleCheckoutAsyncPaymentSuccedeed.ts HTTPStatus Exception: 429
handleCheckoutAsyncPaymentFailed.ts HTTPStatus Exception: 429
handleChargeRefunded.ts HTTPStatus Exception: 429
handleAccountUpdated.ts HTTPStatus Exception: 429
Loadtest
File Summary
loaderio-04cbc2e6e8994582817d57faa8742ee5.html HTTPStatus Exception: 429
Apollo
File Summary
formatError.ts HTTPStatus Exception: 429
apolloserver.ts HTTPStatus Exception: 429
plugins.ts HTTPStatus Exception: 429
context.ts HTTPStatus Exception: 429
Constants
File Summary
brands.ts HTTPStatus Exception: 429
filters.ts HTTPStatus Exception: 429
italian.ts HTTPStatus Exception: 429
constants.ts HTTPStatus Exception: 429
brands.ts HTTPStatus Exception: 429
Nginx
File Summary
nginx.conf HTTPStatus Exception: 429
Mongoose
File Summary
initMongoose.ts HTTPStatus Exception: 429
Scripts
File Summary
generateProducts.ts HTTPStatus Exception: 429
Spaces
File Summary
s3Client.ts HTTPStatus Exception: 429
Firebase
File Summary
firebase.ts HTTPStatus Exception: 429
Src
File Summary
app.ts HTTPStatus Exception: 429
Graphql
File Summary
typeDefs.ts HTTPStatus Exception: 429
resolvers.ts HTTPStatus Exception: 429
Types
File Summary
types.ts HTTPStatus Exception: 429
Shop
File Summary
shop.ts HTTPStatus Exception: 429
shops.ts HTTPStatus Exception: 429
shopByFirebaseId.ts HTTPStatus Exception: 429
shopsAutoComplete.ts HTTPStatus Exception: 429
editShop.ts HTTPStatus Exception: 429
createShop.ts HTTPStatus Exception: 429
changeShopStatus.ts HTTPStatus Exception: 429
User
File Summary
user.ts HTTPStatus Exception: 429
createUser.ts HTTPStatus Exception: 429
editUser.ts HTTPStatus Exception: 429
Cart
File Summary
cart.ts HTTPStatus Exception: 429
carts.ts HTTPStatus Exception: 429
editCart.ts HTTPStatus Exception: 429
removeFromCart.ts HTTPStatus Exception: 429
addToCart.ts HTTPStatus Exception: 429
deleteCart.ts HTTPStatus Exception: 429
Product
File Summary
product.ts HTTPStatus Exception: 429
products.ts HTTPStatus Exception: 429
productsAutoComplete.ts HTTPStatus Exception: 429
deleteProduct.ts HTTPStatus Exception: 429
createProduct.ts HTTPStatus Exception: 429
editProduct.ts HTTPStatus Exception: 429
changeProductsStatus.ts HTTPStatus Exception: 429
Business
File Summary
business.ts HTTPStatus Exception: 429
isBusiness.ts HTTPStatus Exception: 429
setIsBusiness.ts HTTPStatus Exception: 429
Order
File Summary
order.ts HTTPStatus Exception: 429
orders.ts HTTPStatus Exception: 429
returnedOrderHasArrived.ts HTTPStatus Exception: 429
editOrder.ts HTTPStatus Exception: 429
returnOrder.ts HTTPStatus Exception: 429
Information
File Summary
createInformation.ts HTTPStatus Exception: 429
Images
File Summary
uploadImages.ts HTTPStatus Exception: 429
Createbusiness
File Summary
createBusinessStep1.ts HTTPStatus Exception: 429
Variation
File Summary
createVariation.ts HTTPStatus Exception: 429
editvariation.ts HTTPStatus Exception: 429
deleteVariation.ts HTTPStatus Exception: 429
Admin
File Summary
adminCreateProduct.ts HTTPStatus Exception: 429
adminSeeAllOrders.ts HTTPStatus Exception: 429
adminDeleteProduct.ts HTTPStatus Exception: 429
adminLostPackage.ts HTTPStatus Exception: 429
adminCreateAdmin.ts HTTPStatus Exception: 429
adminEditProduct.ts HTTPStatus Exception: 429
adminOrderHasArrived.ts HTTPStatus Exception: 429
Server
File Summary
express4.d.ts HTTPStatus Exception: 429
Schemas
File Summary
Information.model.ts HTTPStatus Exception: 429
Order.model.ts HTTPStatus Exception: 429
Cart.model.ts HTTPStatus Exception: 429
Product.model.ts HTTPStatus Exception: 429
Business.model.ts HTTPStatus Exception: 429
Cap.model.ts HTTPStatus Exception: 429
Shop.model.ts HTTPStatus Exception: 429
User.model.ts HTTPStatus Exception: 429
Controllers
File Summary
getStatus.ts HTTPStatus Exception: 429
canSee.ts HTTPStatus Exception: 429
BetterInputGenerator.ts HTTPStatus Exception: 429
getDiffs.ts HTTPStatus Exception: 429
generateCode.ts HTTPStatus Exception: 429
checkPriceV2BelowV1.ts HTTPStatus Exception: 429
authenticateToken.ts HTTPStatus Exception: 429
dateDiffInDays.ts HTTPStatus Exception: 429
checkObjectID.ts HTTPStatus Exception: 429
uploadToSpaces.ts HTTPStatus Exception: 429
streamToBlob.ts HTTPStatus Exception: 429
checkDiscount.ts HTTPStatus Exception: 429
getStandardItalianPrice.ts HTTPStatus Exception: 429
getRequestedFields.ts HTTPStatus Exception: 429
removeBoughtQuantityFromVariation.ts HTTPStatus Exception: 429
handlePriceEdit.ts HTTPStatus Exception: 429
handleUpdatedPhotos.ts HTTPStatus Exception: 429
checkLotQuantity.ts HTTPStatus Exception: 429
reverseGeocoding.ts HTTPStatus Exception: 429
deleteFromSpaces.ts HTTPStatus Exception: 429
greaterOrEqualThanZero.ts The provided code is a part of a larger project structured to contain multiple functionalities. The specific function shared,'greaterOrEqualThanZero', takes in a number as an argument and returns'true' if the number is greater than or equal to zero, otherwise it returns'false'. This function likely serves for validating numerical inputs throughout the project.
checkFirebaseErrors.ts HTTPStatus Exception: 429
removeDuplicates.ts HTTPStatus Exception: 429
createPostCode.ts HTTPStatus Exception: 429
convertDateToString.ts HTTPStatus Exception: 429
checkConstants.ts HTTPStatus Exception: 429
removeArticles.ts HTTPStatus Exception: 429
checkPostCode.ts HTTPStatus Exception: 429
Email
File Summary
sendOrderReceived.ts HTTPStatus Exception: 429
Queries
File Summary
productById.ts HTTPStatus Exception: 429
productsWithFilters.ts HTTPStatus Exception: 429
businessByStripeId.ts HTTPStatus Exception: 429
cartById.ts HTTPStatus Exception: 429
capByCap.ts HTTPStatus Exception: 429
shopById.ts HTTPStatus Exception: 429
helperShopByFirebaseId.ts HTTPStatus Exception: 429
businessById.ts HTTPStatus Exception: 429
userById.ts HTTPStatus Exception: 429
orderById.ts HTTPStatus Exception: 429
Errors
File Summary
customError.ts HTTPStatus Exception: 429
Mutations
File Summary
deleteCartById.ts HTTPStatus Exception: 429
Html
File Summary
getOrderReceived.ts HTTPStatus Exception: 429
orderItem.ts HTTPStatus Exception: 429

πŸš€ Getting Started

Dependencies

Please ensure you have the following dependencies installed on your system:

- ℹ️ Dependency 1

- ℹ️ Dependency 2

- ℹ️ ...

πŸ”§ Installation

  1. Clone the Veplo-ts repository:
git clone https://github.com/tommaso-merlini/Veplo-ts.git
  1. Change to the project directory:
cd Veplo-ts
  1. Install the dependencies:
npm install

πŸ€– Running Veplo-ts

npm run build && node dist/main.js

πŸ§ͺ Tests

npm test

πŸ›£ Project Roadmap

  • ℹ️ Task 1: Implement X
  • ℹ️ Task 2: Implement Y
  • ℹ️ ...

🀝 Contributing

Contributions are welcome! Here are several ways you can contribute:

Contributing Guidelines

Click to expand
  1. Fork the Repository: Start by forking the project repository to your GitHub account.
  2. Clone Locally: Clone the forked repository to your local machine using a Git client.
    git clone <your-forked-repo-url>
  3. Create a New Branch: Always work on a new branch, giving it a descriptive name.
    git checkout -b new-feature-x
  4. Make Your Changes: Develop and test your changes locally.
  5. Commit Your Changes: Commit with a clear and concise message describing your updates.
    git commit -m 'Implemented new feature x.'
  6. Push to GitHub: Push the changes to your forked repository.
    git push origin new-feature-x
  7. Submit a Pull Request: Create a PR against the original project repository. Clearly describe the changes and their motivations.

Once your PR is reviewed and approved, it will be merged into the main branch.


πŸ“„ License

This project is protected under the SELECT-A-LICENSE License. For more details, refer to the LICENSE file.


πŸ‘ Acknowledgments

  • List any resources, contributors, inspiration, etc. here.

Return


About

Progetto in TypeScript del server di Veplo

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages