All Projects → yezz123 → Nectus

yezz123 / Nectus

Licence: MIT license
A boilerplate Flask API for a Fullstack Project with some additional packages and configuration prebuilt. ⚙

Programming Languages

python
139335 projects - #7 most used programming language
Dockerfile
14818 projects
Makefile
30231 projects

Projects that are alternatives of or similar to Nectus

hx
A simple, easy to use library for React development in ClojureScript.
Stars: ✭ 244 (+662.5%)
Mutual labels:  react-components, react-hooks
Beautiful React Hooks
🔥 A collection of beautiful and (hopefully) useful React hooks to speed-up your components and hooks development 🔥
Stars: ✭ 5,242 (+16281.25%)
Mutual labels:  react-components, react-hooks
MetFlix
A Movie app demo. Like NetFlix ❤️
Stars: ✭ 50 (+56.25%)
Mutual labels:  react-components, react-hooks
react-sample-projects
The goal of this project is to provide a set of simple samples, providing and step by step guide to start working with React.
Stars: ✭ 30 (-6.25%)
Mutual labels:  react-components, react-hooks
tiny-ui
⚛️ A friendly UI component set for React.js
Stars: ✭ 202 (+531.25%)
Mutual labels:  react-components, react-hooks
react-native-value-picker
Cross-Platform iOS(ish) style picker for react native.
Stars: ✭ 18 (-43.75%)
Mutual labels:  react-components, react-hooks
how-react-hooks-work
Understand how React-hook really behaves, once and for all!
Stars: ✭ 73 (+128.13%)
Mutual labels:  react-components, react-hooks
react-guidebook
📚 React 知识图谱 关于概念、技巧、生态、前沿、源码核心
Stars: ✭ 22 (-31.25%)
Mutual labels:  react-components, react-hooks
next-qrcode
React hooks for generating QRCode for your next React apps.
Stars: ✭ 87 (+171.88%)
Mutual labels:  react-components, react-hooks
react-use-hubspot-form
Embed HubSpot forms into your React components using hooks! Works with Create React App, Gatsby and other platforms.
Stars: ✭ 41 (+28.13%)
Mutual labels:  react-components, react-hooks
react-remark
React component and hook to use remark to render markdown
Stars: ✭ 81 (+153.13%)
Mutual labels:  react-components, react-hooks
frontend-toolbox
Frontend tools which we used in snappmarket v2
Stars: ✭ 37 (+15.63%)
Mutual labels:  react-components, react-hooks
furl
Functional react.js components.
Stars: ✭ 33 (+3.13%)
Mutual labels:  react-components, react-hooks
MERN-BUS-APP
This is a MFRP (My first Real Project) assigned to me during my internship at Cognizant. Made with MERN Stack technology.
Stars: ✭ 92 (+187.5%)
Mutual labels:  react-components, react-hooks
book-fullstack-react
Fullstack React: The Complete Guide to ReactJS and Friends by Anthony Accomazzo
Stars: ✭ 100 (+212.5%)
Mutual labels:  react-components, react-hooks
react-admin-nest
React和Ant Design和 Nest.js 和 Mysql 构建的后台通用管理系统。持续更新。
Stars: ✭ 123 (+284.38%)
Mutual labels:  react-components, react-hooks
username-availability-checker
Live at : https://username-check.herokuapp.com/
Stars: ✭ 84 (+162.5%)
Mutual labels:  flask-application, flask-api
fluent-windows
🌈 React components that inspired by Microsoft's Fluent Design System.
Stars: ✭ 122 (+281.25%)
Mutual labels:  react-components, react-hooks
awesome-web-react
🚀 Awesome Web Based React 🚀 Develop online with React!
Stars: ✭ 31 (-3.12%)
Mutual labels:  react-components, react-hooks
React-Netflix-Clone
A Fully Responsive clone of Netflix website built using React.JS as a Front-end & Firebase as a Back-end.
Stars: ✭ 91 (+184.38%)
Mutual labels:  react-components, react-hooks

NECTUS

Nectus 🚀

Flask Boilerplate to quickly get started with production grade flask application with some additional packages and configuration prebuilt.

Getting Started

Prerequisites

  • Python 3.6 or higher
  • PostgreSQL
  • Docker(optional)

Project setup

# clone the repo
$ git clone https://github.com/yezz123/Nectus.git

# move to the project folder
$ cd Nectus

Creating virtual environment 📦

  • Using virtualenv 📦
  • Create a virtual environment for this project 📦
# creating virtual environment
$ virtualenv venv

# activating the virtual environment
$ source venv/bin/activate

# installing dependencies
$ pip install -r requirements.txt

Configuration

  • Create a .env file from .env.sample and set appropriate environment variables before running the project
# Database configuration
DB_HOST=
DB_Name=
DB_USERNAME=
DB_PASSWORD=
DB_PORT=

# JWT configuration
JWT_SECRET_KEY=
UPLOAD_FOLDER =

# APP configuration
HOST=
PORT=

# Flask configuration
FLASK_APP=main.py
FLASK_ENV=development

NOTE: The Pre-configured environment variables are for using Docker.

Database Migration

  • Make sure the database name username, password and host have been set in the env

  • Migrate and upgrade database into your database management (for this case postgreeSQL)

flask db init

flask db migrate -m "create new table"

flask db upgrade

Running app

  • If you feel that everything can be run, then run the Flask API
flask run

Running the Application in Docker 🐳

  • We have the Dockerfile created in above section. Now, we will use the Dockerfile to create the image of the Flask app and then start the application container.
  • I provide a simplified way by Using a Pre-configured Makefile just write in your CLI make help and use the commands.

Note: About the preconfigured .env.sample, i use it to pass all checks relate to Github Actions, you could check both the Docker-compose.yml and Build.yml.

Preconfigured Packages

Includes preconfigured packages to kick start flask app by just setting appropriate configuration.

Package Usage
flask-cors Configuring CORS
PyJWT Python library which allows you to encode and decode JSON Web Tokens (JWT).

License 📝

This project is licensed under the terms of the MIT license.

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].