project-travel-mate / Server
Licence: mit
Django server for Travel Mate (Project: nomad)
Stars: ✭ 36
Programming Languages
python
139335 projects - #7 most used programming language
Projects that are alternatives of or similar to Server
Django Bookworm
A fun project to store my learning from each book that I read.
Stars: ✭ 23 (-36.11%)
Mutual labels: django, django-rest-framework
Algo Phantoms Backend
💻 Algo-Phantoms-Backend is an Application that provides pathways and quizzes along with a code editor to help you towards your DSA journey.📰🔥 This repository contains the REST APIs of the application.✨
Stars: ✭ 36 (+0%)
Mutual labels: django, django-rest-framework
Django Rest Framework Gis
Geographic add-ons for Django REST Framework. Maintained by the OpenWISP Project.
Stars: ✭ 830 (+2205.56%)
Mutual labels: django, django-rest-framework
Djangorestframework Mvt
Serve Mapbox Vector Tiles with Django and Postgres
Stars: ✭ 33 (-8.33%)
Mutual labels: django, django-rest-framework
Django rest example
Django/DRF rest application example.
Stars: ✭ 17 (-52.78%)
Mutual labels: django, django-rest-framework
Django Rest Framework Social Oauth2
python-social-auth and oauth2 support for django-rest-framework
Stars: ✭ 941 (+2513.89%)
Mutual labels: django, django-rest-framework
Modern Django
Modern Django: A Guide on How to Deploy Django-based Web Applications in 2017
Stars: ✭ 662 (+1738.89%)
Mutual labels: django, django-rest-framework
Postgraduation
University management platform dedicated for post-graduation in computer science field using django rest framework.
Stars: ✭ 35 (-2.78%)
Mutual labels: django, django-rest-framework
Timed Backend
Django API for the Timed application
Stars: ✭ 15 (-58.33%)
Mutual labels: django, django-rest-framework
Django Rest Framework Filters
Better filtering for Django REST Framework
Stars: ✭ 710 (+1872.22%)
Mutual labels: django, django-rest-framework
Docker Tutorial
Docker 基本教學 - 從無到有 Docker-Beginners-Guide 教你用 Docker 建立 Django + PostgreSQL 📝
Stars: ✭ 906 (+2416.67%)
Mutual labels: django, django-rest-framework
Awesome Django Rest Framework
💻😍Tools, processes and resources you need to create an awesome API with Django REST Framework
Stars: ✭ 689 (+1813.89%)
Mutual labels: django, django-rest-framework
Project Dashboard With Django
Agile Project Management dashboard with Django REST and Vue.js
Stars: ✭ 25 (-30.56%)
Mutual labels: django, django-rest-framework
Awesome Django
The Best Django Resource, Awesome Django for mature packages.
Stars: ✭ 591 (+1541.67%)
Mutual labels: django, django-rest-framework
Django Rest Framework Docs
Document Web APIs made with Django Rest Framework
Stars: ✭ 607 (+1586.11%)
Mutual labels: django, django-rest-framework
Drf Tus
A Tus (tus.io) library for Django Rest Framework
Stars: ✭ 15 (-58.33%)
Mutual labels: django, django-rest-framework
Seven23 server
Fully manual budget app to track your expenses. Opensource, with privacy by design.
Stars: ✭ 20 (-44.44%)
Mutual labels: django, django-rest-framework
Travel Mate Server (Project: Nomad)
Django 2.0 server for Travel Mate
Contribute
- For new feature request in the app, open a new feature request on the main repository
- For reporting bug in existing APIs, open a new issue on this repository
Local setup instructions
- Clone the project from source
git clone https://github.com/project-travel-mate/server && cd server
- Setup virtual environment
pip install virtualenv
virtualenv venv --python=python3.6
Now activate the environment shell with:
source venv/bin/activate # On Linux
or
venv\Scripts\activate & :: On Windows
- Install all dependencies
pip install -r requirements.txt
- Setup Postgres database and user (assuming Postgres is already installed on system; See postgres setup instructions)
For Linux-
$ sudo -u postgres createuser nomad
$ sudo -u postgres createdb nomad
$ sudo -u postgres psql
psql=# alter user nomad with encrypted password 'pass';
psql=# grant all privileges on database nomad to nomad ;
psql=# ALTER USER nomad CREATEDB ;
For Windows-
The complete path>psql -U postgres -h localhost
Password:The one given during setup of postgres.
postgres=# create database nomad;
postgres=# create user nomad;
postgres=# alter user nomad with encrypted password 'pass';
postgres=# grant all privileges on database nomad to nomad ;
postgres=# ALTER USER nomad CREATEDB ;
- Database migrations
python manage.py makemigrations
python manage.py migrate
- Run Tests
python manage.py test
- Finally! Run server
python manage.py runserver
Open localhost:8000
- To access Django Admin
python manage.py createsuperuser
When prompted, type your username (lowercase, no spaces), email address, and password. For example, the output should look like this:
Username: nomadadmin
Email address: [email protected]
Password:
Password (again):
Superuser created successfully.
- Re-run the server
python manage.py runserver
Open localhost:8000/admin
Working with authenticated APIs
You would need to have a registered user, with which you can generate a authentication token. Follow the following steps to generate a token (You can download Postman client to make the following POST calls) Reference: TokenAuthentication API docs
- Make a POST call to
/api/sign-up
with 4 form-data body objects:email
,password
,firstname
,lastname
. You should get "Successfully registered" response with 201 status code. - Make a POST call to
/api/sign-in
with 2 form-data body objects:username
(which is your email Id you used for sign up),password
. You will get a token in JSON response, store it somewhere. - For making any subsequent request, use the above token by sending it as an "Authorization HTTP Header", eg:
Authorization: Token <your token>
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].