Code Monkey home page Code Monkey logo

formulario's Introduction

Application Setup

This guide outlines the steps to set up the fomr application, along with configuring a PostgreSQL database.

Frontend Setup

Prerequisites

  • Make sure you have Node.js version 14.21.3 or later, npm version 6.14.18 or later installed on your machine, boostrap and Material-UI.

Installation

  1. Navigate to the frontend directory: cd frontend
  2. Install dependencies: npm install
  3. Instal boostrap: npm install bootstrap
  4. Instal Material-UI: npm install @mui/material @emotion/react @emotion/styled

Backend Setup

Prerequisites

  • Python 3.10 or later installed on your machine
  • PostgreSQL 14.11 or later installed and running

Database Setup

  1. Install PostgreSQL: Follow the official documentation or use your package manager.
  2. Once PostgreSQL is installed, access the psql command line interface executing the following command on your terminal:
 sudo -u postgres psql
  1. Execute the script provided database_setup.sql

Virtual Environment

  1. Navigate to the backend directory: cd backend
  2. Create a virtual environment: python3 -m venv venv
  3. Activate the virtual environment:
    source venv/bin/activate

Install Dependencies

  1. Ensure the virtual environment is activated.
  2. Install dependencies from requirements.txt: pip install -r requirements.txt

Django Migration

  1. Create Initial Migrations: python manage.py makemigrations
  2. Apply migrations to the database: python manage.py migrate

Finally

  1. Start the Django development server: python manage.py runserver
  2. Start the React development server: npm start
  3. Access the frontend at http://localhost:3000 and the backend at http://localhost:8000/admin.

formulario's People

Contributors

ricardovaldesv 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.