Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mbrsagor/service24
Online service24 provider web app. The application backend python popular web framework Django & DRF.
https://github.com/mbrsagor/service24
django django-mongodb django-mongoengine mongo mongodb python3
Last synced: 1 day ago
JSON representation
Online service24 provider web app. The application backend python popular web framework Django & DRF.
- Host: GitHub
- URL: https://github.com/mbrsagor/service24
- Owner: mbrsagor
- Created: 2020-08-16T16:44:08.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2024-06-09T06:31:39.000Z (5 months ago)
- Last Synced: 2024-06-09T07:37:00.836Z (5 months ago)
- Topics: django, django-mongodb, django-mongoengine, mongo, mongodb, python3
- Language: HTML
- Homepage:
- Size: 4.88 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# service24 online service provider
## Setup
##### Dependencies
> Prerequisites
- Python 3.8.5
- Django 3.0.5
- MongoDB 4.0.14The 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
```angular2html
mongo
use service24
```### Setup Django Server (Mac)
We're using python3 instead of python2.x. If you don't have python3 installed,
install [Homebrew](http://brew.sh), then…```
brew install python3
```Assuming you've cloned the repository, open Terminal and `cd ~/your/path/to/service24`.
```bash/zsh
cd clone https://github.com/mbrsagor/service24.git
cd service24
virtualenv venv --python=python3.8
```Activate it:
```bash
source venv/bin/activate
```###### Then create ``.env`` file and paste code from `.env-sample` file and add validate information.
-------------------------------------------
```bash
|--> .env_sample
|--> .envInstall 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:
```bash
django-admin makemessages -l en -l fr -l pt -l es --ignore=venv
django-admin compilemessages --ignore=venv
```