Skip to content

Commit dd3569e

Browse files
committed
Update web2py app docs
1 parent 6119041 commit dd3569e

File tree

2 files changed

+45
-0
lines changed

2 files changed

+45
-0
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,3 +164,5 @@ cython_debug/
164164
.mongodb/
165165

166166
node_modules/
167+
168+
web2py/

web2py-app/README.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,46 @@
11
# web2py-app
22

33

4+
## Create a virtual environment
5+
6+
Run the following command to create a virtual environment
7+
8+
```bash
9+
$ python3 -m venv .venv
10+
```
11+
12+
then activate it,
13+
14+
```bash
15+
$ source .venv/bin/activate
16+
```
17+
18+
19+
## Create a Web2Py project
20+
21+
22+
Clone Web2Py from its GitHub repo,
23+
24+
```bash
25+
$ git clone https://github.com/web2py/web2py.git
26+
```
27+
28+
Enter into the repository,
29+
30+
```bash
31+
$ cd web2py
32+
```
33+
34+
To ensure the submodules are inplace, then run
35+
36+
```bash
37+
$ git submodule update --init --recursive
38+
```
39+
40+
Then start Web2Py web portal,
41+
42+
```bash
43+
$ python web2py.py
44+
```
45+
46+
It'll require you to setup a password. After that, you can visit [http://127.0.0.1:8000](http://127.0.0.1:8000)

0 commit comments

Comments
 (0)