Giter Site home page Giter Site logo

thujuli / ngivent Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 20.36 MB

Ngivent is an innovative web platform that connects ticket sellers with users who want to buy tickets for their favorite events. With a range of features supporting both sellers and users, Ngivent provides a complete solution for event ticket management and purchase.

Shell 0.03% TypeScript 99.47% HTML 0.07% JavaScript 0.11% CSS 0.32%
express jest multer nextjs prisma react-hook-form recharts shadcn-ui sonner supertest tailwindcss tanstack-react-query tanstack-table zod

ngivent's Introduction

Purwadhika Final Project Repository

This project uses React.js with NextJS for the frontend, Express.js for the backend, and TurboRepo for monorepo management, facilitating rapid development of a scalable web application with streamlined collaboration and efficient server-client interactions.

Available Scripts

npm run dev

Runs the app in the development mode.

Open http://localhost:5173 to view it in the browser. For API, you can access it in http://localhost:8000/api. The app will reload if you make edits.

npm run build

Builds the app for production to the dist folder for each project.

npm run serve

Runs the app in the production mode.

npm run <task> --workspace=<app-name>

Run command on specific app (install package, run test, etc).

npm run <task> --workspace=<app-name> -- --<option>

Run command on specific app with options.

Example : npm run seqeulize --workspace=api -- --db:migrate

Rules

Commit & Pull Request

  • Always use conventional commit message when committing changes or creating pull request
  • "Squash and Merge" your pull request to main branch

Naming Convention

REST API

File Naming Conventions:

  1. Use CamelCase for filenames:

    • Begin filenames with a lowercase letter.
    • For multiple words, capitalize the first letter of each subsequent word.
    • Example: index.js, userModel.js, dataAccess.js
  2. Use Descriptive Names:

    • Choose names that accurately describe the file's purpose or content.
    • Avoid overly generic names like utils.js unless the file genuinely contains utility functions.
  3. Follow Naming Conventions for Specific File Types:

    • For configuration files, use names like .env, config.js, or settings.json.
    • Use consistent naming for test files, such as appending .test.js or .spec.js to the filename being tested.
    • Use package.json for the project's metadata and dependencies.
  4. Separate Concerns with File Naming:

    • Follow a modular structure for different concerns (e.g., userController.js, userService.js, userModel.js for a user-related module).

Folder Naming Conventions:

  1. Use Singular or Plural Naming:

    • Choose a consistent convention for naming folders (e.g., models or model, routes or route).
  2. Avoid Special Characters and Spaces:

    • Use hyphens (-) or underscores (_) for separating words in folder names, but avoid spaces or special characters.
  3. Use Descriptive Names for Folders:

    • Name folders according to their content or purpose (e.g., controllers, services, utils, tests, public, views, etc.).
  4. Nested Folder Structure:

    • Create a logical and organized folder structure based on the project's architecture.
    • For larger projects, consider organizing files by features/modules (Feature-Based Structure) or layer-based (Layered Structure).

ngivent's People

Contributors

thujuli avatar aryadmara 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.