Skip to content

pinarkaymaz6/demo-archive

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 

Repository files navigation

Demo Archive

Website monip.org made-with-python HitCount GitHub last commit PRs Welcome Awesome Badges

The application is live at http://demoarchive.appspot.com/.

Setup

1. Get a copy of demo-archive repo

Go ahead and clone this repo your to machine

git clone https://github.com/pinarkaymaz6/demo-archive.git

2. Run locally

Running locally is not a mandatory step, but I highly recommend it. It's easier to save and view your changes, since deployment to cloud takes a few minutes.

  • Create a virtual environment and install dependencies
    cd demo-archive/archive
    python3 -m venv FILENAME
    source FILENAME/bin/activate
    pip install -r requirements.txt
  • Start the app
    python3 main.py
  • Now visit http://127.0.0.1:8080/ to view your application.

3. Deploy to Google App Engine

First you should create a project on Google Cloud dashboard if you don't have one. You can follow the instructions here to create a project.

  • Install Google Cloud SDK. Here is the guide for macOS. Make sure you initialize the setups by running gcloud init.

  • Deploy application with your project ID

    gcloud app deploy app.yaml --project PROJECTID
  • Your application should be ready shortly on PROJECTID.appspot.com.