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
alias st="git status" | |
alias ad="git add" | |
alias aa="git add -A" | |
alias co="git commit" | |
alias com="co -m" | |
alias ch="git checkout" | |
alias chm="git checkout master" | |
alias chb="git checkout -b" | |
alias pu="git push" | |
alias puh="git push origin HEAD" |
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":1,"resource":"file:///Users/krunoslavbanovac/Workdir/headless-tiktok/.github/workflows/master.yml","entries":[{"id":"Wq9J.yml","timestamp":1651178335100},{"id":"E9Rf.yml","timestamp":1651178370022},{"id":"eTY6.yml","timestamp":1651178451950},{"id":"9nRK.yml","timestamp":1651178529212},{"id":"bn3B.yml","timestamp":1651178570894},{"id":"glCz.yml","timestamp":1651178585267},{"id":"DcqL.yml","timestamp":1651178904005},{"id":"4TPy.yml","timestamp":1651179030469},{"id":"W2lQ.yml","timestamp":1651179120628},{"id":"wxr5.yml","timestamp":1651179137333},{"id":"HSFB.yml","timestamp":1651699069198},{"id":"bzje.yml","timestamp":1651848302062},{"id":"9MAi.yml","timestamp":1651859914647},{"id":"iMph.yml","timestamp":1651860843366},{"id":"bi49.yml","timestamp":1651880355387}]} |
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 window = global; | |
window._env_ = { | |
API_URL: "https://github.com" | |
}; | |
it("renders without crashing", () => { | |
const div = document.createElement("div"); | |
ReactDOM.render(<App />, div); | |
ReactDOM.unmountComponentAtNode(div); | |
}); |
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
docker-compose -f docker-compose.yml -f docker-compose.dev.yml up |
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
docker build . -t kunokdev/item-service | |
docker push kunokdev/item-service |
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
FROM node:10-alpine | |
WORKDIR /app | |
COPY package.json /app | |
COPY yarn.lock /app | |
RUN yarn | |
COPY . . | |
CMD ["yarn", "start"] |
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
require("http") | |
.createServer((req, res) => res.end("Item service")) | |
.listen(process.env.PORT || 80, err => console.log(err || "Item Service")) |
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
cd item-service | |
# Initialize npm directory | |
yarn init | |
# Create entrypoint file | |
touch main.js | |
# Create .gitignore | |
touch .gitignore |
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
"scripts": { | |
"start": "node main.js", | |
"dev": "nodemon main.js" | |
}, |
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
# Create project root directory | |
mkdir docker-compose-development-environment && cd "$_" | |
# Create service directories | |
mkdir gateway-proxy item-service inventory-service user-service | |
# Create docker-compose files | |
touch docker-compose.yml docker-compose.develop.yml | |
# Initialize git |
NewerOlder