A customizable micro-landing page creator using React, Flask and PostgreSQL.
- Clone this respository
git clone <SSH/HTTPS URL>. - Change directory to the frontend directory
cd linkme/frontend. - Install the dependencies
npm install.
- Create a copy of .env.example to .env
cp .env.example .env.- For
REACT_APP_FRONTEND_URL:- In local and production development, set the variable to
http://localhost:3000.
- In local and production development, set the variable to
- For
REACT_APP_BACKEND_URL:- In local and production development, set the variable to
http://localhost:5000.
- In local and production development, set the variable to
- For
- Run the frontend
npm run start.
- Deploy the frontend on Vercel.
- Run the psql command using a terminal (Eg: Git bash).
- Login to your PSQL account
psql -U <user>. - Enter your password.
- Create the database
CREATE DATABASE linkme;. - Connect to that database
\c linkme;. - Create the necessary tables using flask-migrate.
- Run the command
flask db upgrade.
- Run the command
- Install python virtual environment package if not installed already
pip install virtualenv. - Create a python virtual environment
virtualenv <environment_name>. - Run the virtual environment:
- For windows based systems (environment_name):
source <environment_name>\Scripts\activate.bat. - For Unix based systems (environment_name):
source <environment_name>/bin/activate.
- For windows based systems (environment_name):
- Install dependencies
pip install -r requirements.txt.
- Create a copy of .env.example to .env
cp .env.example .env. - For
DATABASE_URL:- In local development, set the variable to
postgresql://<username>:<password>@localhost:5432/linkme. - In production development, set the variable to the published URL.
- In local development, set the variable to
- Run the backend
flask run.
- Run the backend
gunicorn app:app.
Note: This command works only on Linux.
Warning: This module has not been installed in therequirements.txtfile.