An open API service indexing awesome lists of open source software.

https://github.com/diptadeepray/website_on_local_server

Created a "basic" website using HTML, CSS and JS. Hosted the website on my local machine. The website is accessible by any device in the same Local Area Network.
https://github.com/diptadeepray/website_on_local_server

Last synced: about 1 month ago
JSON representation

Created a "basic" website using HTML, CSS and JS. Hosted the website on my local machine. The website is accessible by any device in the same Local Area Network.

Awesome Lists containing this project

README

          






To create virtual environment of python we need to write the following in the terminal:


python3 -m venv web_venv
web_venv is the name of the virtual environment

To activate virtual environment:


source web_venv/bin/activate

To make the website available on the Local Area Network:


The following command must be written in the terminal (inside the directory which contains all the files and folders + inside the virtual environment to access all the modules):
flask run --host=192.168.0.100 --port=5000

After this we can access the website from any device in the same Wi-Fi network using the following IP Address:


http://192.168.0.100:5000

You can get the IP Address of the Macbook by running the following command in my terminal:


ifconfig | grep inet

If we just write the following in the terminal:


flask run or
python3 app.py

Then the website will be only accessible from that local machine using the IP Address which looks like this:


http://127.0.0.1:5000