Giter Club home page Giter Club logo

realworld's Introduction

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.

realworld's People

Contributors

danjac avatar rebornweb avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.