Coder Social home page Coder Social logo

i-uams-api's Introduction

User Account Management System API

User Account Management System API

GET STARTED

If anything goes wrong, you can ask Victor N. for further assistance.

Database

This project is pre-configured with postgres. Follow this documentation on how to get started with postgres.

Install Postgres on Linux/Windows/Mac

After creating user(s) and database for this project, create a DATABASE URL, and add it to the DATABASE_URL in settings.ini file.

The url must be formatted as this example bellow:

postgres://user:password@host:port/db_name

For localhost, host is localhost or 127.0.0.1, and default port is 5432

Create virtualenv

virtualenv -p python3 venv

Activate the virtualenv

source venv/bin/activate

Install requirements

pip install -r requirements-vps.txt

Generate settings.ini files (For windows users, create the file manually):

cat settings.ini.example > settings.ini

Open settings.ini files, and fill in all necessary values.


Apply database migrations

python manage.py migrate

Runserver

python manage.py runserver

Or specify your own host and port as follows:

python manage.py runserver 0.0.0.0:8000

replace 0.0.0.0 and 8000 with your host and port respectively

Open project in browser

http://localhost:8000/api-documentation

Running tests

python manage.py test

Documentation

By default, this project has a Swagger based documentation package called drf-yasg.

For full documentation on configurations, please follow the guide link.

Working with Celery

Celery is mainly used to perform background tasks which are usually not meant to be part of the request - response cycle.

Celery documentation

To access the documentation:

Open project in browser

http://localhost:8000/api-documentation

Working with Celery Beat

Celery beat is used to perform periodic tasks automatically.

Celery beat documentation

Deployment

Django applications can be deployed in many ways, and on many different servers. Here are some useful documentations for some popular servers.

Ningx/gunicorn/postgresql on ubuntu server

Heroku

Run with Docker

Build project with docker compose

docker-compose build

Run project with docker compose

docker-compose up

Open project in browser

http://0.0.0.0:8000/api-documentation

i-uams-api's People

Contributors

ngabovictor avatar

Watchers

James Cloos 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.