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:
- PostgreSQL installed
- MySQL installed
- SQLite installed
- Database Management System installed (Azure Data Studio or alternative)
- Node and npm installed
- Python installed with virtualenv or an alternative
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
.
- Run the command
npm install
inside of themanga-backend-express
andmanga-client
folders to install the project dependencies - Run the command
npm run dev
to start the servers formanga-backend-express
andmanga-client
directories - Run the command
python3 manage.py runserver
from the directorymanga-backend-django/manga
to start the Django server
The 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"