GithubHelp home page GithubHelp logo

jtenclay / kw-backend Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kaniwani/kw-backend

0.0 2.0 0.0 27.5 MB

Server, Database, and Backend functionality for KaniWani

Home Page: https://kaniwani.com

Python 9.34% JavaScript 44.14% CSS 23.13% HTML 23.40%

kw-backend's Introduction

Deployment status from DeployBot

KW

KaniWani

Getting started:

Backend

Since we're using Django, a fair bit of setup is required to get a development environment up and running. Here are all the tools you need.

  1. Python 3. You can get it from activestate
  2. If you want to use the distributed messaging queue for tasks, Install a redis server This is only necessary if you want to use the periodic features(for example having the SRS run every 15 minutes).
  3. Install Pycharm (or use whatever editor you like).
  4. Clone the repository wherever you like.
  5. Move the secrets.py file into the same directory as the settings.py file.
  6. Fire up pycharm and open the parent KW directory.
  7. After a bit, there should be a prompt to install a list of requirements, hit yes and let the installation go. It'll give you a popup when it is done. 7b. If this doesn't happen, and you know your way around the terminal, try pip install -r requirements.txt
  8. Delete the db.sqlite3 file
  9. hit Ctrl + alt + r . This will open up a manage.py command window.
  10. execute the command makemigrations
  11. It may prompt you to create a superuser, do so.
  12. Ctrl + alt + r again.
  13. This time execute migrate. The database is now built, but not yet populated.
  14. Ctrl + alt + r again.
  15. Exeute the command shell. This brings you to application shell.
  16. Execute this:
from kw_webapp.tasks import repopulate
repopulate()

Chances are your system will spit a bunch of errors at you. Ignore them and wait. Eventually they will stop.

  1. Ctrl + alt + r one last time. Type in the command runserver --noreload

If all went well, it will start a server at 127.0.0.1:8000

Frontend

Here are all the tools you'll need.

  1. Node.js [Get it here] (https://nodejs.org).
  2. NPM (installed with Node, huzzah) (does this step even count?).
  3. Open a terminal, navigate to the frontend folder, and run npm install.
  4. Make some tea while you wait.
  5. When dependencies are installed, run gulp to see styleguide & watch changes.

This will start a server at localhost:3000 & open your browser to the styleguide.

However, to compile & copy assets to be accessed within the webapp ensure you run gulp --prod

More detailed information in /_front-end/README.MD

kw-backend's People

Contributors

djtb avatar tadgh avatar

Watchers

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