Minor code review

This commit is contained in:
Dion Moult
2021-08-12 17:56:58 +10:00
parent 7a5b15e5a2
commit 199bc86a88
3 changed files with 36 additions and 71 deletions
+10 -13
View File
@@ -1,19 +1,16 @@
# Server-Test
1. Cd to the server directory i.e cd `IfcOpenShell\src\bcfserver`
```
$ pip install -r requirements.txt
$ cd bcfserver/
$ python
>>> from run import db
>>> db.create_all()
$ export FLASK_APP=run.py
$ flask run
```
2. Set up the server by installing the dependencies
3. Run `pip install -r requirements.txt` to install the dependencies
4. In Python Shell, do the following
- from run import db
- db.create_all() to setup the database table
5. Run `set FLASK_APP=run.py`
6. Run `flask run` to start the server
7. Go to [http://localhost:5000](http://localhost:5000) to see the server
Go to [http://localhost:5000](http://localhost:5000) to see the server
# Register the user