Giter VIP home page Giter VIP logo

safe-project's Introduction

safe-project

This project is the backend for a simple e-commerce app. Built with Python/Django/Django REST framework.

Features

A few of the things you can do with this app:

  • Admin can create/update/delete product, category, company and cpu
  • Authenticated users can make GET requests to product, category, company and cpu
  • Unauthenticated users can't make GET requests
  • Users can login to be authorized

Installing Dependencies for the project

  1. Python - Follow instructions to install the latest version of python for your platform in the python docs

  2. Virtual Enviornment - We recommend working within a virtual environment whenever using Python for projects. This keeps your dependencies for each project separate and organaized. Instructions for setting up a virual enviornment for your platform can be found in the python docs

  3. PIP Dependencies - Once you have your virtual environment setup and running, run:

pip install -r requirements.txt

This will install all of the required packages we selected within the requirements.txt file.

Key Dependencies

  • Django is a Python-based free and open-source web framework that follows the model–template–views architectural pattern

  • Django REST framework is a powerful and flexible toolkit for building Web APIs.

  • PostgreSQL The World's Most Advanced Open Source Relational Database

Running the server

First ensure you are working using your created virtual environment.

To run the server locally, execute:

python manage.py runserver --settings=safeProject.settings_local

API Reference

The app is deployed to Heroku

Base URL

API Documentation

Admin Credentials

Username: admin

Password: admin

User Credentials

Username: user

Password: Aa1234500

Testing

Run test cases

python manage.py test --settings=safeProject.settings_local

safe-project's People

Contributors

ibrahus avatar

Watchers

 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.