-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhow to.txt
50 lines (45 loc) · 1.41 KB
/
how to.txt
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
-----install stuff from internet-----
-npm
-node
-python3
-in virtual enviroment:
-Flask
-TinyDB
-git
-check if each is installed via $ npm --version
-----set up git-----
-if you start a new project:
-cd to documents (or wherever you want)
-$ git init
-let git know who you are:
-$ git config --global user.email "[email protected]"
-$ git config --global user.name "yonisimian"
-----import project from github------
-cd to documents
-clone the repository via $ git clone https://github.com/yonisimian/shifts-ui.git
-??connect to remote (not sure about next two lines):
-$ cd shifts-ui
-$ git remote add origin https://github.com/yonisimian/shifts-ui.git
-make sure you're connected via $ git remote -v
-install missing dependencies via $ npm install
-----commit changes and push back to github-----
-$ git add .
-$ git commit -m "yoni ha-melech"
-make sure git is connected to remote via $ git remote -v
-$ git push origin master
-----start a develompent server-----
-start flask:
-cd to shifts-ui\api
-on linux:
-$ source env\bin\activate
-$ export FLASK_APP=api.py
-$ flask run -h 0.0.0.0 -p 5000
-on windows:
-$ win_env\Scripts\activate (to exit venv: $ deactivate)
-$ set FLASK_APP=api.py
-$ flask run -h 0.0.0.0 -p 5000
-start react (on another terminal):
-cd to shifts-ui
-$ npm start
-----start a production server-----
-absolutly no idea :)