Blog App made using Django and React
Blog web application written using Javascript with React for Frontend, Python with Django for Backend and PostgreSQL as a default database.
First clone the repository to use it localy:
git clone https://github.com/syqu22/flask-pastebin.git
Then install all required libraries through:
pip install -r requirements.txt
Rename the .env.sample
to .env
, then fill it with all the needed keys. POSTGRES
is for the database access, EMAIL
is for the email authentication and SECRET_KEY
is the secret key for the application.
Now you need to create a Postgre database with name blog_db
then do all the migrations using command:
py manage.py makemigrations
and:
py manage.py migrate
For the frontend you need to run these commands from the /frontend
folder:
npm install
to download all the needed NPM packages and then to start the frontend Dev server:
npm run dev
Finally you can start the frontend server from base project folder by running:
py manage.py runserver