Coder Social home page Coder Social logo

be-ecommerce's Introduction

Backend E-Commerce

  1. Pengenalan
  2. Instalasi project
  3. Menjalankan program
  4. Dokumentasi API

Pengenalan

Tentang project ini, project ini di khususkan untuk layanan data E-Commerce seperti user, toko, product, dan lainnya. Fitur utama tidak jauh dari kebanyakan E-Commerce lainnya, seperti user dapat membuat toko sendiri, juga dapat memposting produk tokonya sendiri, kemudian melakukan checkout produk.

Instalasi project

Berikut adalah beberapa langkah awal pada saat melakukan instalasi project.

  • Clone repository dengan menggunakan git git clone https://github.com/flattenbot/be-ecommerce.git

  • Masuk kedalam direktori projek cd be-ecommerce

  • Install dependencies npm install

  • Buat file .env di dalam root project lalu copy isi file .env example copy ke dalam .env

  • Generate prisma dengan perintah npx prisma generate

  • Migrasi database dengan prisma npx prisma migrate dev

  • Jalankan program dengan perintah npm run dev, atau lebih detailnya bisa lihat disini.

Menjalankan program

Berikut adalah beberapa langkah untuk menjalankan program :

  • npm run dev Menjalankan server dalam mode development atau pengembangan

  • npm run start Build kode typescipt ke dalam javascript

  • npm run seed [nama seeder] Menjalankan data seeder dalam tahap pengembangan

  • npm run seed:all Menjalankan automatic seeder

  • npm run test Menjalankan mode testing menggunakan framework Jest

Dokumentasi API

Dokumentasi API disini menggunakan Swagger UI Express anda dapat melihatnya detail lengkapnya dengan mengakses url docs ke : http://localhost:port/docs

be-ecommerce's People

Contributors

fannn03 avatar anospoldigot 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.