This is a Django project running the Djmongo API Builder. It is based on Python 3.6 and Django 2.2.
- Clone this repository:
git clone https://github.com/videntity/djmsample.git - Ensure MongoDB is installed and running.
- Adjust the value of
MONGODB_CLIENTenvironment variable if necessary. The default value ismongodb://localhost:27017/. On Linux for exampleexport MONGODB_CLIENT=mongodb://example.com:27017/. - While not absolutely required, its a good idea to create a Python virtualenv. For example
mkvirtualenv djmsample -p python3. - Install the Python requirements with pip.
pip install -r requirements.txt - Setup the relational database.
python manage.py migrate. (Note the relational database holds configuration data for each API you create.) - Create a superuser so you can login to the API console.
python manage.py createsuperuser. - Run the built in server:
python manage.py runserver - Point your web browser to the URL:
http://127.0.0.1:8000/ - Login and start building your API gateway!
Please check out our open source command line tools for importing data into MongoDB at https://github.com/videntity/json-data-tools