File tree Expand file tree Collapse file tree 1 file changed +20
-4
lines changed Expand file tree Collapse file tree 1 file changed +20
-4
lines changed Original file line number Diff line number Diff line change @@ -3,14 +3,30 @@ There are 2 apps in this repository: the backend micro service and the frontend
33
44# Setup  
55### Prerequisites  
6- Python >= 2.7
7- npm
8- React-Native
6+ -   Python >= 2.7
7+ -   npm
8+ -   React-Native
99
1010### What to do  
1111``` 
1212git clone https://github.com/damgambit/react_native-python_flask-sql-with-authentication-boilerplate 
1313cd react_native-python_flask-sql-with-authentication-boilerplate 
1414pip install -r ./server/requirements.txt 
1515npm install ./client 
16- ``` 
16+ `` 
17+ 
18+ # Backend 
19+ ## Configuration 
20+ - DB connection string in /server/app.py 
21+ - Secret_key in /server/app.py 
22+ - Host:port in /server/app.py 
23+ 
24+ ## Start 
25+ python app.py 
26+ 
27+ ## API 
28+ | EndPoint | Auth&Data | Response | 
29+ |--------------------------|:-------------------------------------------------:|------------------------:| 
30+ | [POST] /api/users | data: {username: "", password: ""} | {user_id: "", token: ""}| 
31+ | [POST] /api/users/signin | basicauth: {username: "", password: ""} username | {user_id: "", token: ""}| 
32+ | [GET] /api/resource | auth: {token: ""} | "Hello User" | 
                         You can’t perform that action at this time. 
           
                  
0 commit comments