GithubHelp home page GithubHelp logo

typesarespaces / agora-app Goto Github PK

View Code? Open in Web Editor NEW

This project forked from franklindyer/agora-app

0.0 0.0 0.0 2.74 MB

Simple and (hopefully) secure social media application. Also a project for spring 2024 CS 444 cybersecurity class at UNM.

Python 64.72% CSS 3.77% HTML 30.96% Dockerfile 0.55%

agora-app's Introduction

Intended project structure:

╚═ agora-app
   ╠═ src
   ║  ╠═ Dockerfile
   ║  ╠═ server.py
   ║  ╠═ utilities
   ║  ╠═ templates
   ║  ╠═ params
   ║  ╠═ tests
   ║  ╠═ static
   ║  ║  ╠═ css
   ║  ║  ╠═ js
   ║  ║  ╚═ img
   ║  ╚═ volumes (GITIGNORE)
   ║     ╠═ db
   ║     ╠═ img
   ║     ╠═ logs
   ║     ╚═ posts
   ╠═ docs
   ╠═ README.md
   ╚═ TODO.md

Create a volumes folder inside of src to house your copy of the database:

mkdir src/volumes

To add a (empty) database, run the following from inside of volumes:

sqlite3 agora.db < ../params/agora.schema

To build with docker, run the following in the top level of the repository (where the Dockerfile is):

sudo docker build -t <YOUR_NAME>/agora-app:latest .

and to run your image:

sudo docker run -p 8080:8080 \
                -v ./src/volumes:/app/volumes \
                -v ./src/templates:/app/templates \
                -v ./src/static:/app/static \
                -e HOST="<THE DOMAIN YOU ARE USING>" \
                -e MAILGUN_KEY="<YOUR MAILGUN KEY>" \
                -e RECAPTCHA_SITEKEY="<YOUR RECAPTCHA SITEKEY>" \
                -e RECAPTCHA_SERVERKEY="<YOUR RECAPTCHA SERVERKEY>" \
                -e DEV_EMAILS="<LIST OF DEVELOPER EMAILS>"
                <YOUR_NAME>/agora-app:latest

Notes:

  • The -p parameter essentially links a port on your machine to one of Docker's internal ports. 1234:8080 maps your machine's port 1234 to Docker's port 8080. For this command to work, you must use Docker's 8080 port.

agora-app's People

Contributors

altheaden avatar franklindyer 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.