This file contains hidden or 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
# Main stage responsible for installing and configuring Rails and assets dependencies | |
FROM ruby:3.0.4-alpine AS ruby-base | |
ARG RAILS_MASTER_KEY | |
ARG BUNDLER_VERSION=2.3.12 | |
ENV RAILS_MASTER_KEY=${RAILS_MASTER_KEY} | |
ENV RAILS_ENV=production | |
ENV NODE_ENV=production |
This file contains hidden or 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 ubuntu:20.04 | |
RUN apt update \ | |
&& apt -y upgrade \ | |
&& apt install -y openssh-server vim | |
RUN useradd -rm -d /home/zrod -s /bin/bash -g root -G sudo -u 1000 zrod \ | |
&& echo 'zrod:mysafepassword' | chpasswd \ | |
&& usermod -aG sudo zrod |
This file contains hidden or 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
{ "items": [ | |
{ | |
"title": "NASDAQ", | |
"description": "lorem ipsum etc" | |
}, | |
{ | |
"title": "WORK", | |
"description": "Work to live" | |
}, | |
{ |
This file contains hidden or 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
{ | |
"name": "akaunting/akaunting", | |
"description": "Free accounting software, based on Laravel framework.", | |
"homepage": "https://akaunting.com", | |
"keywords": ["laravel", "accounting", "software", "online"], | |
"license": "GPL-3.0+", | |
"type": "project", | |
"require": { | |
"php": ">=5.6.4", | |
"akaunting/language": "1.0.*", |
This file contains hidden or 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: '3' | |
services: | |
traefik: | |
image: 'traefik' | |
restart: 'always' | |
ports: | |
- '80:80' | |
- '8080:8080' | |
- '443:443' |
This file contains hidden or 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
class CategoriesPlace < ApplicationRecord | |
belongs_to :place | |
belongs_to :category | |
validates :place, :category, presence: true | |
end |
This file contains hidden or 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
// @flow | |
export type CategoryType = { | |
+id: number, | |
+name: string, | |
+slug: string, | |
+description: string | |
}; | |
// ... | |
const categoriesItems = state.categories.items.slice(); |
This file contains hidden or 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: | |
postgres: | |
image: 'postgres:10.2' | |
restart: 'always' | |
ports: | |
- '5404:5432' | |
environment: | |
POSTGRES_USER: 'dev-sql' |
This file contains hidden or 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
import React from 'react'; | |
import expect from 'expect'; | |
import { shallow, configure } from 'enzyme'; | |
import { createStore } from 'redux'; | |
import moment from 'moment'; | |
import { NewProfilePage } from '../../../src/components/user/NewProfilePage'; | |
import ManageProfile from '../../../src/components/user/ManageProfile'; | |
import defaultState from '../../../src/components/user/defaultState'; | |
import rootReducer from '../../../src/reducers'; | |
import initialState from '../../../src/reducers/initialState'; |
This file contains hidden or 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
// @flow | |
export default class I18n { | |
translations: { | |
messages: {}, | |
routes: {} | |
} = { | |
messages: {}, | |
routes: {} | |
}; |
NewerOlder