Bulding a simple productivity web application.
This project is built using:
- Flask
- TailwindCSS
- Node JS
- PostgreSQL
Note: Make sure you have Node JS installed on your local machine in order to run the npm command.
Please follow the steps below in order to setup this project in your local machine
In your teminal, navigate to the folder you desire to clone this project then run the command below. You will see a folder named simplify-project gets created on your local machine.
git clone https://github.com/UTSprogrammers/simplify-project.gitIf you have never installed virtual environment in your local machine before, please run this command in your terminal
pip install virtualenvNext, you need to install python dependencies in order for this project to work. You will need to go to your terminal and create a new virtual environment.
virtualenv envYou will see an env folder gets created. Next, you will need to activate the virtual environment by running this command:
- MacOS
source env/bin/activate- Windows
env\Scripts\activateFor windows user, please refer to this link
After your virtual environment is active, you will see (env) on the left-hand side of your terminal directory. Next, you will need to install all python dependencies in the requirements.txt file. To install all of the dependencies, you could run the command below.
pip install -r requirements.txtNOTE: Make sure that everytime you run this project, you need the virtual environment to be active. You could know if your virtual environment is active or not through the (env) sign on your left-hand side of your terminal.
Next, you will need to install Node js dependencies as well in order for the CSS framework (Tailwind) to work. You could install the node dependencies by running the command below:
npm installFinally, all of the depencies have been installed. Next, you will need to open two terminal in your editor (VS Code, Sublime Text, etc) to run this command separately. You need to run this command in order.
npm run buildcssflask run --debugLastly, navigate to your terminal and you will find the project is being host at http://127.0.0.1:5000. Click on the link, and you will be able to see the project running.