This repository was archived by the owner on Dec 7, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.md.old
91 lines (59 loc) · 2.63 KB
/
README.md.old
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
# CODEKRAFT COOK MAKER
**CodeKraft Cook-maker** is a full ruby/react stack to provide an easy to install dev environment. It provides a **Ruby/Rails/Grape based API** and a **full React base Client**.
## INSTALL
### HANDMADE
For a handmade installation, please consider you have access to a linux environment.
# update the system
sudo apt-get update
# install minimal dependencies : Curl & Git
sudo apt-get -y install git curl
# clone cook-maker from CodeKraft repo
git clone [email protected]:TheRealCodeKraft/cook-maker
Then, you will need to update your system to provide all needed libraries to make CodeKraft environment working.
# init environment
./cook-maker/preheat
### DOCKER
# Clone this repo
git clone [email protected]:TheRealCodeKraft/cook-maker
### VAGRANT
First, download the Vagrantfile located at : [VagrantFile](https://raw.githubusercontent.com/TheRealCodeKraft/cook-maker/master/vagrant/Vagrantfile)
# Download Vagrantfile
wget https://raw.githubusercontent.com/TheRealCodeKraft/cook-maker/master/vagrant/Vagrantfile
Place it in the chosen directory and then launch :
# Launching vagramt machine
vagrant up
Wait for installation (it take time !) and then go in box
# Connecting to box
vssh
## CREATE A SKELETON APPLICATION
### WITH DOCKER
#### BASH SCRIPTS
We provide a docker application creator. Just follow this pieces of treatment
# Launch cook maker
./cook-maker/docker/cook -a <app_name>
#### HANDLY
Or you can run these commands manually :
# Build the cook maker
sudo docker build -t cook-maker ./cook-maker/docker/ #--no-cache
# Remove previous cook maker
sudo docker rm cook-maker
# Cook a new app
sudo docker run -it -v $(pwd):/build -e name=<app_name> --name cook-maker cook-maker
### VAGRANT OR LOCAL
#### WORKING EXAMPLE
You want nothing else to have an example application to see this bundle working, so :
# Cook an application named *example*
./cook-maker/cook-example
#### YOUR OWN BOOTSTRAP APP TO CUSTOMIZE
You want to give another name than 'example' to your project and some description
# Cook an application with your preferences
./cook-maker/cook -a <app_name> -d "<app_description>" -v <client_lib_version>
# where client_lib_version is the react frontend library version you want to use
## DROP AN APPLICATION
You have tested example and want to remove all files and data properly :
### EXAMPLE APP
# Drop the application named *example*
./cook-maker/drop-example
### YOUR OWN APP
# Drop the application named with the parameter
./cook-maker/drop -a <app_name>