Code Monkey home page Code Monkey logo

undangan-api's Introduction

kamu

PHP Programming Language Total Downloads repo size Latest Stable Version License

About Kamu

"Kamu" merupakan PHP framework yang sangat simpel, memberikan pengalaman seolah-olah berada di localhost meskipun dalam mode production. Dibantu dengan "Saya" konsol yang membantu pengembangan aplikasi secara efisien.

Api Spec

See in postman collection

https://www.postman.com/dewanakl/workspace/undangan/collection/20716209-a29ef362-b4dc-4c02-8904-d90749a40842?action=share

Run without docker

  • Create file env

    cp .env.example .env
  • Install package

    composer install
  • Create key application

    php saya key
  • Execute migration database

    php saya migrasi --gen
  • Run in development server

    php saya coba

Run with docker

  • Create file env

    cp .env.example .env
  • Change and customize env file

    BASEURL=https://your.domain.or.ipaddress:8080/
    
    DB_DRIV=pgsql
    DB_HOST=db
    DB_PORT=5432
    DB_NAME=undangan
    DB_USER=root
    DB_PASS=12345678
    
    JWT_KEY=valueIsSecure
    
  • Build and run image

    docker compose up --build -d
  • Execute migration

    NOTE: Wait until the database is ready.

    docker exec undangan-app php saya migrasi --gen

Deployment on vercel

  • Clone or download this repository

    git clone https://github.com/dewanakl/undangan-api.git
  • Install package

    composer install
  • Create .env file

    cp .env.example .env
  • Execute migration database

    php saya migrasi --gen
  • Create key application

    php saya key
  • Push on your github.

  • Create new project in vercel.

  • Import from your repository.

  • Change environment variables in your project on vercel.

  • Add this :

    • DB_HOST (your host cloud dbms)
    • DB_PASS (your password cloud dbms)
    • DB_USER (your username cloud dbms)
    • DB_NAME (your name of database cloud dbms)
    • DB_PORT (your port cloud dbms)
    • DB_DRIV (type cloud dbms [ex. mysql or pgsql])
    • JWT_KEY [ex. 123]
    • HTTPS [true]
    • DEBUG [false]
    • LOG [false]
    • APP_KEY [copy from your local env]
  • Click deployments tab in vercel project.

  • Click the most recent deploy.

  • Click dot three and redeploy.

  • Done.

Get Started Project

  • Create a project with composer

    composer create-project kamu/kamu coba-app
  • Move the folder

    cd coba-app
  • Run in development server

    php saya coba

Contributing

I'm very open to those of you who want to contribute to Kamu framework!

Security Vulnerabilities

If you find a security vulnerability in this Kamu, please email DKL via [email protected].

License

Kamu framework is open-sourced software licensed under the MIT license.

undangan-api's People

Contributors

dewanakl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

undangan-api's Issues

Request

Tambah dashboard admin mas, untuk mengontrol isi dari database-nya ๐Ÿ™

Cors issue

Maaf mas mau tanya, apinya udah berhasil dideploy ke vercel, cuman pas get api session itu kena cors

image

terus response code nya sih 200, tapi ada error ini diresponse bodynya

<br /> <b>Fatal error</b>: Uncaught Exception: Error could not save log file in /var/task/user/vendor/kamu/framework/src/Core/Support/Error.php:190 Stack trace: #0 /var/task/user/vendor/kamu/framework/src/Core/Facades/Web.php(211): Core\Support\Error-&gt;report() #1 /var/task/user/vendor/kamu/framework/src/Core/Facades/Web.php(245): Core\Facades\Web-&gt;handleError(Object(Exception)) #2 /var/task/user/public/index.php(22): Core\Facades\Web-&gt;run() #3 /var/task/user/api/index.php(9): require_once('/var/task/user/...') #4 {main} thrown in <b>/var/task/user/vendor/kamu/framework/src/Core/Support/Error.php</b> on line <b>190</b><br />

Mohon bantuannya terima kasih

izin nanya mas

cara dapatin app key dari mana ya mas,saya soalnya baru belajar

help me :

hallo mas, saya mau belajar bagian backend API ini barangkali bisa ngasih tutor ๐Ÿ™
terima kasih mas. @dewanakl

Izin tanya mas

Selamat malam Mas, saya sudah coba beberapa metode instalasi (vercel dan hosting)

https://undanganapi-d1bs.vercel.app/ - Error 503 / 500 saya tidak dapat mengecek bagian apa yang error dari vercel ini.. Tapi kalo saya embed pakai vercel-nya mas, aman2 saja...

Kira - kira kesalahannya apa ya mas? saya bingung utak atiknya

Sekali lagi, terima kasih ya mas

Deploy API dengan Docker + Nginx

Permisi, saya kan mau coba deploy API nya tapi kok 403 Forbidden terus ya ?...
Saya pakai Docker dan Nginx di server, yang sudah saya lakukan ubah permission sama beri SSL masih tetap ga bisa
Tapi saya coba di lokal dengan laragon bisa aja
Ada solusinya ?...
Terima kasih

Bearer token kosong

izin tanya mas, api udah saya deploy dan berhasil nampilin data, tapi seminggu kemudian malah erro bearer token kosong dan comment ga mau muncul. Kira kira kenapa ya mas mohon bantuannya

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.