Samuel-Risner / flow-free-clone

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

flow-free-clone

Play in the browser over GitHub: https://samuel-risner.github.io/flow-free-clone/

How does this repo work?

General

This project is designed to be a static webpage, but still uses JavaScript modules, meaning that it isn't enough to open the entrypoint ("index.html") in your browser but you need to run a web server (Python Flask in this case) to fully view the page.

Requirements

To run the web server you need to install Python and install the modules under "requirements.txt", alternatively you can use a virtual environment, instructions for that are here.

If you want to change how the page works or how it looks you need to install the node packages under "package.json", instructions can be found here.

Install/Create Stuff

Create Python Virtual Environment (Windows)

Open your terminal in this directory, then:

 python -m venv venv
 venv\Scripts\activate
 python.exe -m pip install --upgrade pip
 pip install -r requirements.txt
 deactivate

Install Node.js Stuff

Open your terminal in this directory, then:

 npm install

Compile Stuff

Compile TypeScript

 npm run build_ts

Compile Tailwind CSS

 npm run build_tw

Watch Tailwind CSS

 npm run watch_tw

Watch TypeScript

 npm run watch_ts

Run the server (Windows cmd)

Don't forget to install the Python requirements.

Open your terminal in this directory, then:

 venv\Scripts\activate
 python main.py

To stop the server press "CTRL+C", then:

 deactivate

About

License:MIT License


Languages

Language:TypeScript 44.4%Language:JavaScript 41.4%Language:HTML 13.3%Language:Python 0.7%Language:CSS 0.2%