Code Monkey home page Code Monkey logo

creative-ai-app's Introduction

Creative-AI-App

Backend (development)

Setup Poetry in the virtual environment:

mkdir backend
cd backend

export VENV_PATH=venv
python3 -m venv $VENV_PATH
$VENV_PATH/bin/pip install -U pip setuptools
$VENV_PATH/bin/pip install poetry

Create python project using Poetry:

poetry new app
cd app

# add basic dependencies
poetry add fastapi uvicorn websockets

# add dev dependencies
poetry add --group dev black flake8 pytest

See more info about Poetry basic usage here.

Run the server:

uvicorn app.main:app --reload

TODO

Frontend (development)

Create Next.js project:

npx create-next-app@latest --typescript --experimental-app frontend 

Run the server:

cd frontend
npm run dev

Extra libraries

# basic
npm install @mui/material @mui/styled-engine-sc styled-components

# icons
npm install @mui/icons-material
npm install -D tailwindcss postcss autoprefixer
npx tailwindcss init -p


npm i nanoid
npm i react-draggable

Deployment

⚠️ IMPORTANT ⚠️

It is necessary to export backend URL in the build.env file in .gitlab-ci-front.yml. This is necessary for the frontend to be able to connect to the backend.

creative-ai-app's People

Contributors

vagechirkov avatar

Stargazers

 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.