Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nitin-bommi/scis-forum
https://github.com/nitin-bommi/scis-forum
Last synced: 12 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/nitin-bommi/scis-forum
- Owner: nitin-bommi
- Created: 2021-05-15T13:23:09.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-08-03T13:25:23.000Z (over 3 years ago)
- Last Synced: 2024-11-18T07:40:16.319Z (about 1 month ago)
- Language: JavaScript
- Size: 4 MB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# scis-forum
## Setting up the environment
* Clone the repository
* Copy the following command in the terminal/command-line: `git clone https://github.com/Nitin1901/scis-forum.git`
* Move to the cloned directory
* Create a virtual environment
* `python -m venv venv` - for windows
* `python3 -m venv venv` - for ubuntu (make sure you install the `python3-venv` module
* Activate the virtual environment
* `venv\Scripts\activate` - for windows
* `venv\bin\activate` - for ubuntu
* Install the dependancies
* `pip install requirements.txt` - for windows
* `pip3 install requirements.txt` - for ubuntu
* You can now run the code
* `python app.py` - for windows
* `python3 app.py` - for ubuntu## Adding environment variables
### Windows
* Navigate to system environment variables from the control panel.
* Add the variables and corresponding values
* `EMAIL_USER`
* `EMAIL_PASS`## Accessing database
* Go to python shell in scis-forum directory
* `from scisforum import db, create_app`
* `app = create_app()`
* `app.app_context().push()`
* `db.create_all()` - when you add a table)
* Do your stuff