GithubHelp home page GithubHelp logo

mbrsagor / service24 Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 5 MB

Online service24 provider web app. The application backend python popular web framework Django & DRF.

Python 15.91% CSS 25.01% JavaScript 8.41% HTML 50.63% Dockerfile 0.03%
django mongodb django-mongodb django-mongoengine mongo python3

service24's Introduction

service24 online service provider

Setup

Dependencies

Prerequisites

  • Python 3.8.5
  • Django 3.0.5
  • MongoDB 4.0.14

The following steps will walk you thru installation on a Mac. I think linux should be similar. It's also possible to develop on a Windows machine, but I have not documented the steps. If you've developed django apps on Windows, you should have little problem getting up and running.

On Mac

First you will install mongo in your system.

brew tap mongodb/brew
brew install [email protected]
mongod --config /usr/local/etc/mongod.conf --fork
ps aux | grep -v grep | grep mongod

Create the database by running the following commands in a mongo shell

mongo
use service24

Setup Django Server (Mac)

We're using python3 instead of python2.x. If you don't have python3 installed, install Homebrew, then…

brew install python3

Assuming you've cloned the repository, open Terminal and cd ~/your/path/to/service24.

cd clone https://github.com/mbrsagor/service24.git
cd service24
virtualenv venv --python=python3.8

Activate it:

source venv/bin/activate
Then create .env file and paste code from .env-sample file and add validate information.

|--> .env_sample
|--> .env

Install the python dependencies which includes django and other libraries.

pip install -r requirements.txt


#### Run server locally

```bash
./manage.py makemigrations user
./manage.py migrate user
./manage.py migrate
./manage.py runserver
If need to change langauge below the commands:
django-admin makemessages -l en -l fr -l pt -l es --ignore=venv
django-admin compilemessages --ignore=venv

service24's People

Contributors

mbrsagor avatar

Stargazers

 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.