This codebase is for the "A day in the life of a developer - Building a dashboard app with Node.js, Django and Next.js" article which you can find on my blogs:
You might need to use a different Python command when using Python it depends on how your computer is configured. For example you might need to use the command
python3
orpython
. The same applies to usingpip
orpip3
.
npm install
inside of the manga-backend-express
and manga-client
folders to install the project dependenciesnpm run dev
to start the servers for manga-backend-express
and manga-client
directoriespython3 manage.py runserver
from the directory manga-backend-django/manga
to start the Django serverThe manga-backend-express
server and manga-backend-django
are both running on port 8000. So either change the port number for one of them or just run one server at a time.
The manga-backend-express
server requires a .env
file in the root folder. See this example below which is setup to work with postgresql databases.
DATABASE_URL="postgresql://postgres:@localhost:5432/manga?schema=public"
PORT="8000"
ENVIRONMENT="development"