Skip to content

Instantly share code, notes, and snippets.

View miukki's full-sized avatar
💭
leetcode запой

Anya Ishmukh miukki

💭
leetcode запой
View GitHub Profile
@miukki
miukki / ui-assets-repo1.txt
Last active April 4, 2018 03:56
repo for ui assets
1. UI-assets-repo-sample provides builder-scripts for generating UI assets for projects.
2. Example command line
miukki@Anna-Ishmukhametovas-MacBook-Air:~/Sites/ui-assets-repo-sample$ PROJECT=lisa TARGET=desktop yarn run build
Desccription: PROJECT=[:project_name] TARGET=[:desktop,:mobile] this params help you init right script in GruntFile and generate scss(SASS) -> css
3. scss/main/:projectName.scss (e.g css/main/lisa.scss) is example config for one project.
I use processor called processhtml in gruntFile for generate scss assets for particular project .
3.1. Output is scss/compiled/*.scss . scss/compiled/main.scss - Compiled core based on bootstrap ui sass
@miukki
miukki / front-ng1.6-repo2.txt
Last active April 2, 2018 09:17
repo ng1.6, capistrano usage example
1. UI looks like : [ui1, ...]
2. test:
2.1 Unit test Jasmin you can check coverage repost /coverage/report-html/index.html
2.2 e2e example test -> test/
3. app/scripts/ scripts
4. app/data client validation rules (schema), definitions.schema.json - definitions for each rule
5. Builder scripts located in gruntFile.js and local-server-launcher also there
6. all test sample in test/
7. config/deploy cap deploy sample script
8. circle CI script also you can find in repo
@miukki
miukki / nodejs-api-sample.txt
Last active April 2, 2018 09:16
repo nodejs api
1. read repo https://github.com/miukki/nodejs-api-magazine-app
2. nodejs framework - strong loop
3. I had experience to code backend, restful API
@miukki
miukki / code-sample-rn-app-models
Last active March 20, 2018 02:04
react native app
1. patterns: redux-logic, models, components, containers
2. tech: jest, docker, flowjs, ES6, native-base, react-native
3. test jest-coverage for models https://monosnap.com/file/rNx14x6lrF4HXDyY5nhlBxgJHb0aTh (example how test looks)
4. samples https://github.com/miukki/rn-models
5. UI screens: https://monosnap.com/file/EKKx3xIrJyWoYt0ME5RNJizNjMsvF3, https://monosnap.com/file/5ImjH34O5pNFt0vJjfpvbUjJ3cwXz5
6. npm packages contibution:
https://www.npmjs.com/package/prepsmith-react-native-components,
https://www.npmjs.com/package/eic-vocab-app-models,
# cryptography-task
## Get Started
### Installation
```
npm install --save cryptography-task
```
@miukki
miukki / config.yml
Created May 2, 2019 04:12
Deploy to s3 bucket front-end stack using circle CI using workflows with AWS
# Javascript Node CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-javascript/ for more details
#
version: 2
jobs:
build:
docker:
# specify the version you desire here
- image: circleci/node:8.11-stretch-browsers
@miukki
miukki / config.yml
Created May 2, 2019 04:14
Deploy to private server by using cirkcle CI config with connect to SSH
version: 2
jobs:
build:
docker:
- image: circleci/node:10
working_directory: ~/repo
steps:
@miukki
miukki / deploy.rb
Last active May 17, 2019 05:00
Capistrano / deploy frontend/backend assets
# config valid only for current version of Capistrano
lock '3.6.1'
set :application, 'eic-lisa-web'
set :repo_url, '[email protected]:Prepsmith/eic-lisa-web.git'
set :deploy_to, '/home/eic/static/lisa'
set :linked_dirs, fetch(:linked_dirs, []).push('node_modules', 'bower_components')
@miukki
miukki / docker-compose.yml
Created May 2, 2019 05:13
Docker container / deploy to EC2 nodejs/reactjs assets
version: "2"
services:
app:
container_name: app
restart: always
build: .
ports:
- "3000:3000"
links:
- mongo
@miukki
miukki / README.md
Created May 2, 2019 05:31
Run project on ec2 using screen -x

Setup local env

Run mongo

#new tab
sudo mongod --config /usr/local/etc/mongod.conf
#check it and if needs kill previous process  
lsof -t -i tcp:27017
#sudo kill -9 :pid