Skip to content

rebornweb/realworld

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker Instructions Dockerfile Addition & will run a python image, download, install and run the server!

#Choose image
FROM python

#Copy files from local to image
COPY . .

#PORT
EXPOSE 3000 80 8000

#Install Dependencies 
RUN mkdir /home/app && cd /home/app && \
    git clone https://github.com/danjac/realworld/ && cd realworld 
    
#Set working directory
WORKDIR /home/app/realworld


RUN python3 -m venv venv  && \
    pip install -r requirements.txt && \
    ./manage.py migrate 

#Run this if you want to run server manually
#RUN ./manage.py runserver

#Comment this out if you don't want server to run automatically
CMD ["python", "manage.py", "runserver", "0.0.0.0:8000"]

#Go to 127.0.0.1:8000 in browser

#Commands to run cli to build image and container
# docker build -t neo:latest .
# docker run -it -d -p 8000:8000 neo:latest 
# docker exec -it container bash

Original Instructions Implementation of real-world application: https://github.com/gothinkster/realworld/ using Django and HTMX.

An in-depth discussion of this implementation can be found here.

Tech Stack:

To install and run locally:

git clone https://github.com/danjac/realworld/ && cd realworld

python -m venv venv

source venv/bin/activate

pip install -r requirements.txt

./manage.py migrate && ./manage.py runserver

Note: this is just a reference implementation and is not intended for production use.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 50.7%
  • HTML 48.4%
  • Dockerfile 0.9%