- The Industrial Revolution and its consequences have been a disaster for the human race. They have greatly increased the life-expectancy of those of us who live in “advanced” countries, but they have destabilized society, have made life unfulfilling, have subjected human beings to indignities, have led to widespread psychological suffering (in the Third World to physical suffering as well) and have inflicted severe damage on the natural world. The continued
Oh boi, here I give you the solution for that. This document is based on these links:
- https://steamcommunity.com/app/221410/discussions/2/616189106498372437/?l=portuguese&ctp=8
- https://wiki.archlinux.org/title/dnsmasq#NetworkManager
- ValveSoftware/steam-for-linux#3401
My solution seems to be deprecated, there are other solution from the comment on this Gist, that actually works. So, please use that instead, it's way much simpler, and it works.
Here's my vuetify.js looks like.
import Vue from 'vue';
import Vuetify from 'vuetify/lib';
Vue.use(Vuetify);
export default new Vuetify({});
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// What is promise actually? | |
/* | |
Well promise is just like in real life. It's block of code that will be executed, and return rejection or resolve. | |
You should handle both of them. Like in real life promise, you can't guarantee it will resolve right? | |
Wait, what is resolve then? Resolve is fulfilled in real life example. | |
Let's say, you promise me that you'll always be by my side, so the resolve is, you are always be by my side. | |
And the rejection is, you leave me. | |
Great, now I know what the promise is, but how do I handle promise resolve and rejection? | |
It's simple, there's a lot of ways to execute promise. The one I prever to use is, async await. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "2" | |
services: | |
express_auth: | |
image: fikrirnurhidayat/express-auth:latest | |
build: . | |
ports: | |
- "8080:8080" | |
network_mode: "host" | |
environment: | |
- DB_CONNECTION="mongodb://localhost/express_auth" |
Create e-commerce service.
- There's two roles of user, merchant and customer.
- Merchants can add product, picture of the product is mandatory.
- Customers can add a product into their cart, and automatically generate total price of the product they order.
- Customers can check the order details of each product in their cart.
- Customers can check their order history.
- Each product have stock information. And it will be reduced after the order from the user is done.
- Customers can't order a product which is out of stock.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const mongoose = require('mongoose'); | |
const bcrypt = require('bcryptjs'); | |
const jwt = require('jsonwebtoken'); | |
const UserProfile = require('./userProfile.js'); | |
var userSchema = new mongoose.Schema({ | |
name: { | |
type: 'string', | |
required: true | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const nodemailer = require('nodemailer'); | |
const sgTransport = require('nodemailer-sendgrid-transport'); | |
const { successResponse, errorsResponse } = require('./responseFormatter.js'); | |
const option = { | |
auth: { | |
api_key: process.env.SENDGRID_API_KEY | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"swagger": "2.0", | |
"info": { | |
"description": "This is API Documentation.", | |
"version": "1.0.0", | |
"title": "Express Auth", | |
"contact": { | |
"email": "[email protected]" | |
} | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
/** | |
* Module dependencies. | |
*/ | |
var app = require('../src/server.js'); | |
var debug = require('debug')('random:server'); | |
var http = require('http'); |
NewerOlder