Giter VIP home page Giter VIP logo

book-crud's Introduction

Book CRUD

A simple CRUD (Create, Read, Update, Delete) application built on Django Rest Framework, Nuxt.js and Nginx.

It includes:

  • Automatic HTTPS with Let's Encrypt and Certbot.
  • Basic captcha for sign up form.

As a user you would be able to:

  • CRUD book entries.
  • Login and logout.
  • Sign up.

Installation

All you need is Docker and Docker Compose. Make sure you have them. Then:

# 1. Download this repo.
git clone https://github.com/luvejo/bookcrud

# 2. Well... you know.
cd bookcrud

# 3. Build and run.
docker-compose -f local.yml up --build

Go to http://127.0.0.1.

Screenshot

Development

In order to interact with a service, you could run:

docker-compose -f local.yml run --rm $SERVICE_NAME $COMMAND

For example, if you want to run the django shell, exec:

docker-compose -f local.yml run --rm django python manage.py shell

Deploying

Rename .envs/.production.example as .envs/.production and customize it. Then just:

# 1. Connect to your server
ssh $YOUR_SERVER

# 2. Download this repo.
git clone https://github.com/luvejo/bookcrud

# 3. ¯\_(ツ)_/¯
cd bookcrud

# 4. Build and run.
docker-compose -f production.yml up --build

Note: set STAGING_ENV to False to request a production Let's Encrypt certificate. If you're just testing, the default (True) will prevent hitting rate limits too early.

License

This project is licensed under the MIT License. See the LICENSE file for details.

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.