Giter Site home page Giter Site logo

ch9-sample-api's Introduction

Binar Academy Bootcamp - FSW - Chapter 9 - Sample API

Ini adalah repository RESTful API yang menjadi basis untuk materi chapter 9. Ikuti petunjuk di bawah dengan seksama untuk memastikan teman-teman dapat menjalankan RESTful API.

Prasyarat

Sebelum memulai menyentuh repository, pastikan komputer teman-teman memenuhi prasyarat berikut:

  • Sudah install Node.js & NPM
  • Sudah install PostgreSQL
  • Sudah install git

Project setup

  1. Fork repository ini. Ada tombol 'fork' di kanan atas. Setelah fork nanti akan muncul repository yang sama persis di akun teman-teman.
  2. Clone repository teman-teman yang sudah di fork :
git clone https://github.com/{username_kalian}/ch8-challenge.git
  1. Pindah ke folder repository yang sudah di clone dengan command cd ch8-challenge.
  2. Install dependencies pada server dengan command npm install.
  3. Untuk konfigurasi database, terdapat dua cara. Pertama, ubah langsung /config/config.js. Kedua (disarankan), menggunakan env. Untuk menggunakan env, cukup copy file .env.example dan paste menjadi .env atau bisa lakukan command cp .env.example .env lalu lakukan konfigurasi pada file .env.
  4. Setelah konfigurasi database. Jalankan sequelize db:create.
  5. Lanjutkan dengan menjalankan migrasi sequelize db:migrate

Run

Untuk menjalankan aplikasi RESTful API, pastikan sudah berada pada directory server. Untuk menjalankan dalam mode development, jalankan command berikut:

npm run dev

Untuk menjalankan dalam mode biasa, jalankan command berikut:

npm run start

ch9-sample-api's People

Contributors

binar-wahyu 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.