Coder Social home page Coder Social logo

petedannemann / neargreen-v2 Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 1.25 MB

Where finding healthy food, is a few steps away.

Home Page: http://www.peterdannemann.com/neargreen-v2/

Python 49.67% HTML 2.85% Vue 35.21% JavaScript 8.35% Dockerfile 2.09% Shell 1.84%

neargreen-v2's Introduction

Neargreen V2

Goal

Near Green is a web application that aims to make healthy food accessible to the city of Philadelphia.

Features

  • Single Page Application (SPA) where all requests are served by Django Rest Framework (DRF) and consumed by Vue.js

Backend Requirements

  • Docker
  • docker-compose

Frontend Requirements

  • Yarn
  • Vue Cli 3

Run Backend Development Server

$ docker-compose -f docker-compose.dev.yml build
$ docker-compose -f docker-compose.dev.yml up

Run Frontend Development Server

$ yarn serve

Run Backend Production Server

$ docker-compose -f docker-compose.prod.yml build
# The first time, seed the database, after that don't include that env var
$ SEED_DB=true SECRET_KEY=secretkey docker-compose -f docker-compose.prod.yml up

Deploy Frontend to Github Pages

$ source deploy_frontend.sh

URL Routes

/ Index, displays all stores

API Routes

/api/stores Display all stores

/api/stores/<storeid> Display a specific store

/api/register Register a profile

/api/auth/login Login a user

/api/auth/logout Logout a user

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.