Giter Club home page Giter Club logo

greatapi's Introduction

GreatAPI - Full-stack FastAPI Framework

GreatAPI

GreatAPI is a full-stack FastAPI framework designed to simplify and accelerate web application development. It leverages the power of FastAPI and integrates various essential tools to provide a seamless development experience.

Linter PyPI - Downloads PyPI PyPI - Python Version

Documentation

Explore our comprehensive documentation to get started with GreatAPI: Documentation

Source Code

Find the source code on GitHub: GitHub Repository

PyPI Package

Install GreatAPI using PyPI: PyPI Package

Contributors

Major contributors to GreatAPI:

Requirements

Before we dive into the tutorial, make sure you have the following requirements in place:

  • Python 3.6 or higher installed on your system.
  • Familiarity with Python programming language concepts.

GreatAPI is built upon the foundation of the following robust libraries:

  • FastAPI: A modern, fast, web framework for building APIs with Python.
  • uvicorn: ASGI server that runs FastAPI applications.
  • typer: A command-line interface library for building CLI applications.
  • jinja2: A templating engine for Python.
  • SQLAlchemy: A powerful Object-Relational Mapping (ORM) library for Python.

Installation

To install GreatAPI and its dependencies, use pip:

pip install greatapi

Getting Started

Step 1: Start a New Project

To begin working with GreatAPI, let's create a new project. Open your terminal and execute the following command:

greatapi startproject myproject

This will create a new directory named "myproject" with the basic structure to get you started.

myproject/

├──__init__.py

├──settings.py

main.py

Step 2: Create a New App

An app in GreatAPI is a modular unit that encapsulates specific functionality of your project. To create a new app, run the following command:

greatapi startapp myapp

This will generate a new directory named "myapp" containing the necessary files and folders for your app.

myapp/

├──__init__.py

├──models.py

├──repository.py

├──router.py

├──schemas.py

Step 3: Run the Server

Now, it's time to run the development server. Execute the following command:

greatapi runserver

Step 4: Creating a Superuser

After running the server, let's create a superuser to manage the administration of your project. Execute the following command:

greatapi createsuperuser

Follow the prompts to create the superuser account and again run the server.

The server will start, and you can access your application at http://localhost:8000/. Additionally, GreatAPI provides a beautifully designed built-in Admin Panel accessible at http://localhost:8000/admin.

greatapi's People

Contributors

dependabot[bot] avatar lamdiv avatar sahajrajmalla avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

greatapi's Issues

Login failed: No access_token received

Describe the bug
When you try to login to the http://127.0.0.1:8000/admin/login with the credentials, this error gets logged in console:

login:89 Login failed: No access_token received
(anonymous) @ login:89
Promise.then (async)
performLogin @ login:87
login:79     POST http://127.0.0.1:8000/admin_login 404 (Not Found)
performLogin @ login:79

To Reproduce
Steps to reproduce the behavior:

  1. Create super user with greatapi createsuperuser
  2. greatapi runserver
  3. Now, go on http://127.0.0.1:8000/admin/login and try logging in
  4. Check the error message in console.

Screenshots
image

Desktop (please complete the following information):

  • OS: Fedora 38
  • Browser Chrome
  • Version Version 116.0.5845.140 (Official Build) (64-bit)

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.