Skip to content

kabradshaw1/React-Django-REST-PostgreSQL

Repository files navigation

React Django and PostgreSQL server

Purpose

This project is for the purpose of learning about integrating these three technolgies: Django, PostgreSQL, and React. It will also use Django Restframework and axios. As I've gone on to add more, this project has added some TypeScript, React-Redux, Formik, and Yup during the process of learning another method of authentication.

Deployed Site

https://serene-tor-73175.herokuapp.com/

Installation

  • Download and install python 3, PostgreSQL, and Node.js.
  • Clone this repository
  • Create a virtual environment for the project by typing, python -m venv venv, into the command line (windows only)
  • login to the virtual environment by typing, venv\Scripts\activate, into the command line (windows only)
  • Install python packages: pip install Django djangorestframework django-cors-headers dj-database-url django-heroku gunicorn whitenoise python-decouple psycopg2
  • Set up .env with SECRET_KEY=, DEBUG=true, DB_PW=, DB_NAME=, USER_NAME=, HOST=localhost
  • Create a database if you haven't already. You can do this from pgAdmin or from command line. I used the command line. Login with psql -U username and putting in password. The command to make a database is CEATE DATABASE databasename;
  • In the command line, type: python manage.py makemigrations and python manage.py migrate
  • Install npm package from command line: npm i

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published