Giter VIP home page Giter VIP logo

server_dumtick's Introduction

server_dumtick

https://dumtick-app.herokuapp.com

function untuk today =
const date = new Date();
let bln = date.getMonth() + 1;
if (bln < 10) {
bln = "0" + bln;
} else {
// eslint-disable-next-line no-self-assign
bln = bln;
}
let hari = date.getDate();
if (hari < 10) {
hari = "0" + hari;
} else {
// eslint-disable-next-line no-self-assign
hari = hari;
}
let tgl = date.getFullYear() + "-" + bln + "-" + hari; //ini tanggal mulai atau (startTgl)
const dateEnd = new Date();
dateEnd.setDate(dateEnd.getDate() + 1);
dateEnd.setMonth(dateEnd.getMonth());
let endBln = dateEnd.getMonth() + 1;
if (endBln < 10) {
endBln = "0" + endBln;
} else {
// eslint-disable-next-line no-self-assign
endBln = endBln;
}
let hari1 = dateEnd.getDate();
if (hari1 < 10) {
hari1 = "0" + hari1;
} else {
// eslint-disable-next-line no-self-assign
hari1 = hari1;
}
let endTgl = dateEnd.getFullYear() + "-" + endBln + "-" + hari1; // ini tgl akhir (endTgl)

function untuk ongoing =
let dateOngoing = new Date();
dateOngoing.setDate(dateOngoing.getDate() + 1);
dateOngoing.setMonth(dateOngoing.getMonth());
let blnOngoing = dateOngoing.getMonth() + 1;
if (blnOngoing < 10) {
blnOngoing = "0" + blnOngoing;
} else {
// eslint-disable-next-line no-self-assign
blnOngoing = blnOngoing;
}

let hariOngoing = dateOngoing.getDate();
if (hariOngoing < 10) {
hariOngoing = "0" + hariOngoing;
} else {
// eslint-disable-next-line no-self-assign
hariOngoing = hariOngoing;
}
let onGoing = dateOngoing.getFullYear() + "-" + blnOngoing + "-" + hariOngoing; // ini adalah ongoing

link untuk get categories = https://dumtick-app.herokuapp.com/api/v1/categories
link untuk get event per category = https://dumtick-app.herokuapp.com/api/v1/category/:id/events
link untuk get event by ID = https://dumtick-app.herokuapp.com/api/v1/event/:id
link untuk menambahkan event = https://dumtick-app.herokuapp.com/api/v1/event
link untuk get event todays = https://dumtick-app.herokuapp.com/api/v1/events?start_time=starttgl&end_time=endtgl
maksud starttgl adalah tanggal mulainya. cara membuat tanggal mulai seperti diatas (fungsi) dan maksud endtgl adalah tgl akhir event nya cara membuat seperti fungsi diatas link untuk get event ongoing = https://dumtick-app.herokuapp.com/api/v1/ongoing?startTime=${onGoing} ongoing adalah nama fungsi untuk mendapatkan event antara besok dan lima hari kedepan .. cara membuatnya adalah seperti fungsi diatas
link untuk get event by title = https://dumtick-app.herokuapp.com/api/v1/events?title=${query.get("title")}
link untuk get favorite = https://dumtick-app.herokuapp.com/api/v1/user/favorites
link untuk get payment yang sudah di apporoved = https://dumtick-app.herokuapp.com/api/v1/order?status=approved
link untuk get payment yang masih pending = https://dumtick-app.herokuapp.com/api/v1/payment
link untuk menambahkan orderan = https://dumtick-app.herokuapp.com/api/v1/event/order

link untuk add favorite dan delete favorite = https://dumtick-app.herokuapp.com/api/v1/favorite

link untuk register = https://dumtick-app.herokuapp.com/api/v1/register
link untuk login = https://dumtick-app.herokuapp.com/api/v1/login
link untuk get profile = https://dumtick-app.herokuapp.com/api/v1/user
link untuk edit profile = https://dumtick-app.herokuapp.com/api/v1/profile

untuk url map bisa diambil dari embed hasil gmap

server_dumtick's People

Contributors

nurdin73 avatar

Stargazers

 avatar  avatar

Watchers

James Cloos avatar  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.