Giter Site home page Giter Site logo

vreaxe / travel-expense-manager Goto Github PK

View Code? Open in Web Editor NEW
22.0 2.0 7.0 2.28 MB

A travel expense manager made with Django, GraphQL, Next.js and Tailwind CSS

License: MIT License

Python 28.56% JavaScript 70.23% CSS 0.87% Dockerfile 0.21% Shell 0.14%
reactjs nextjs graphql django graphene-django travel-expense-management tailwindcss docker expense-manager docker-compose

travel-expense-manager's Introduction

✈️ Travel Expense Manager 💸

A travel expense manager made with Django, GraphQL, Next.js and Tailwind CSS

Last Release TODO List License

 

⚠️ Warning: WIP. Do not use in a production environment.

Development environment installation with Docker 🐳

1. Download or clone repo

git clone https://github.com/vreaxe/travel-expense-manager.git

2. Create the .env files inside the "backend" and "clients" directories and change the environment variables

"backend" folder:

DEBUG=True

SECRET_KEY=something

GRAPHIQL=True

DB_NAME=travel_expense_manager
DB_USER=root
DB_PASSWORD=secret
DB_HOST=database
DB_PORT=3306

CORS_ORIGIN_WHITELIST=http://127.0.0.1,http://localhost

"clients" folder:

NODE_ENV=local

GRAPHQL_URL_CLIENT_SIDE=http://localhost:8000/graphql/
GRAPHQL_URL_SERVER_SIDE=http://backend:8000/graphql/

APP_NAME=Travel Expense Manager

3. Build and run Docker containers

docker-compose -f docker-compose.dev.yml up -d --build

4. Migrate

docker exec tem-dev-backend python manage.py migrate --noinput

5. Create a superuser

docker exec -it tem-dev-backend python manage.py createsuperuser

6. Now you can access the backend at http://localhost:8000 and the frontend at http://localhost:3000

7. Sync currencies and countries (optional - you can create them manually through the Django admin panel)

docker exec tem-dev-backend python manage.py sync_countries
docker exec tem-dev-backend python manage.py sync_currencies

 

Screenshots

travel-expense-manager's People

Contributors

dependabot-preview[bot] avatar vreaxe avatar

Stargazers

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

Watchers

 avatar  avatar

travel-expense-manager's Issues

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.