Skip to content

diegosanchezp/ati2-project

Repository files navigation

ATI 2 Project

Setup development environment

Install system dependencies

These system dependencies are required, Linux OS is preferred.

System dependency Version Usage
bash 5 Setup scripts
docker >= 20 Build images
docker-compose >= 2 Backend Development environment
Nodejs LTS Frontend
yarn 1.22 Install Nodejs dependencies

Docker config

Docker has to be able run as a non root user for more info check

Post-installation steps for Linux | Docker Documentation

Setup

If you are using Linux, put this into your bashrc .bashrc OR .zhsrc, it's needed for the file permissions.

export UID=$(id -u)
export GID=$(id -g)
  1. Run this command, to setup the development environment
bash shscripts/setup_dev.sh

If you are using Windows you'll have to inspect shscripts/setup_dev.sh, and find the equivalent commands, or use the Linux Subsystem.

  1. Load development command utilities with
source shscripts/dev.sh
  1. Activate the backend server, to test if everything has worked
runserver
  1. Activate the frontend server, to test if everything has worked
yarn dev

Development

It is recommend to check the commands of shscripts/dev.sh it has a ton of useful commands.

If you want to source the commands

source shscripts/dev.sh

Backend api docs

API REST documentation is located at

http://127.0.0.1:8000/api/docs

Frontend

Developer Documentation

About

Proyecto ATI2 semestre 2-2022

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •