Skip to content

thiraphat-ps-dev/django-react-activity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

django-react-activity

An application for recording daily to-do lists.

Preview

Installation with clone this project

git clone https://github.com/thiraphat-ps-dev/django-react-activity.git

Download and install Node.Js for install package.

Install Python3

$ npm install python

Check Python version

$ python -V

Result

Python 2.7.16

Install pip

$ npm install pip

Check pip version

$ pip -V

Result

pip 20.2b1 from /Library/Python/2.7/site-packages/pip-20.2b1-py2.7.egg/pip (python 2.7)

Create venv python3 with command

$ python3 -m venv ./venv

Activate venv

$ source venv/bin/activate

If you want to deactivate use this command

Deactivate venv

$ deactivate

Go to root directory

$ cd django-react-activity

#Setup backend

Install Django

$ pip install django

Check django version

$ python -c "import django; print(django.get_version())"

Result

(venv) thiraphat.ps.dev@Mac-mini django-react-activity % python -c "import django; print(django.get_version())"
3.0.7

Go to backend folder

$ cd backend

migrate this backend with command

$ python manage.py migrate

createsuper user for use adminpage

$ python manage.py createsuperuser

run backend server with command

$ python manage.py runserver

You can go to backend api page http://localhost:8000/api/activitys/ image info

#Setup Frontend

$ cd frontend

Install package with command

$ npm istall

Runserver with command

npm start

Go to frontend page http://localhost:3000/ image info

You can try to add completed delete activity

thank for watching

About

An application for recording daily to-do lists.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published