GithubHelp home page GithubHelp logo

zuri-training / favicon-gen-team-77 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zuri-training/favicon-gen-team-66

0.0 0.0 0.0 7.93 MB

Backend repo for Team-66 Favicon generator

License: MIT License

Shell 0.01% JavaScript 0.48% Python 12.69% CSS 50.27% HTML 36.55%

favicon-gen-team-77's Introduction

Favicon Gen - Team 66

Table of contents

Overview

A platform that allows users to generate favicons, from icons and related HTML codes to embed. Users perform specific actions dependent on if they are unauthenticated or not.

User: Unauthenticated

  • Visit the platform to view basic information about it
  • View and Interact with the documentation
  • Register to view more details
  • No access to use until registered

User: Authenticated

  • Full access to the platform
  • Allow user upload icon
  • Generate favicon (downloadable as zip)
  • Generate html code for favicon
  • Allow user save data and come back to download or use

Technologies Used

Stack Usage
Django API
HTML/CSS Frontend
Javascript Frontend logic

Repo Setup

To setup the repo, first fork the favicon-gen-team-66 repo, then clone the forked repository to create a copy on the local machine.

$ git clone https://github.com/<github-user>/favicon-gen-team-66.git

Change directory to the cloned repo and set the original Favicon Gen Team 66 repository as the "upstream" and your forked repository as the "origin".

$ git remote add upstream https://github.com/zuri-training/favicon-gen-team-66.git

Setup the Project

The first step requires the download and installation of Python (if not installed) and a check to confirm that pip and the necessary dependencies are properly installed.


After the installation of Python, setup the project environment with pip and a virtual environment in the command prompt, powershell or gitbash terminal.


Virtual Environment

A virtual environment creates an isolated Python environment containing all the packages necessary for the project.

*Note:

  • This project was setup using the gitbash terminal. Some of the commands used might not work with command prompt or powershell.
  • If a "pip command not found error" is encountered, download get-pip.py and run phython get-pip.py to install it.

$ pip install virtualenv

Navigate to the cloned local project folder. Create a virtual environment folder and activate the environment by running the following commands in the gitbash terminal.

$ python -m venv venv
$ source venv/scripts/activate

Django Installation

Once the virtual environment is active, the next step is the Django installation. Django is an open source Python web application framework thats helps with the rapid development of secure websites.

$ (venv) pip install django

After installing Django, install Django REST framework in the gitbash terminal. The Django REST framework is a flexible toolkit for building Web based APIs. The REST framework was used for the creation of APIs, serialization and the authentication process for this project.

$ (venv) pip install djangorestframework

Install all the necessary dependencies for the project. A few of them are listed below.

Modules Usage
django-extensions Custom extensions for Django
asgiref Async HTTP requests
python-decouple Virtual environment configuration

An exhaustive list can be found in the requirements.txt file included in this project. The modules can be 'batch installed' using the pip install -r requirements.txt command.

$ cd favicon-gen-team-66

$ pip install -r requirements.txt

Env Setup

Next create a .env file by using the sample.env. Retrieve your secret key from settings.py and place it within the .env file.

List of available endpoints

View URL
Register User http://127.0.0.1:8000/register
Login User http://127.0.0.1:8000/login
Logout User http://127.0.0.1:8000/logout
User profile http://127.0.0.1:8000/profile
User List http://127.0.0.1:8000/users

|

Status

This project is a work in progress and is currently under development.

Contributors

This Project was created by the members of Favicon Gen Team 66 during the Project Phase of the Zuri Internship.

Contributing to the project

If you find something worth contributing, please fork the repo, make a pull request and add valid and well-reasoned explanations about your changes or comments.

Before adding a pull request, please note:

  • This is an open source project.
  • Your contributions should be inviting and clear.
  • Any additions should be relevant.
  • New features should be easy to contribute to.

All suggestions are welcome!

README Created by pauline-banye

TODO

  • frontend setup
  • testing
  • linting & precommit
  • swagger documentation
  • deployed link

favicon-gen-team-77's People

Contributors

msindy avatar ismailmuhammed2019 avatar pauline-banye avatar earthtosarah avatar oladokunlt avatar luckii715 avatar odinks 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.