Skip to content

AngelAngelopoulos/WebAuctionTask

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

WebAuctionApp

Requirements

  • Python 3.8.5
  • Node v14.15.4
  • npm 6.14.10
  • yarn 1.22.10

Installation

git clone https://github.com/AngelAngelopoulos/WebAuctionTask 
cd WebAuctionTask

Database

This App uses Postgresql as database engine, so, you shall be create a database with the following values:

  • NAME: auction_db
  • USER: postgres
  • PASSWORD: admin
  • HOST: localhost
  • PORT: 5432

Backend

cd auctionAPI
python3 -m venv venv
venv/bin/pip3 install -r requirements.txt
venv/bin/python3 manage.py migrate
venv/bin/python3 manage.py runserver 

This start a webservice in localhost:8000

Frontend

cd ..
cd web-auction-webapp
npm install

You can use

yarn dev

or

npm dev

to start the node server.

This init a webapp in localhost:3000 and connects with the backend

Get Started

Then you should create a superuser with the command

venv/bin/python3 manage.py createsuperuser

After this, you can enter in the Django admin panel (http://localhost:8000/admin/). Here we are going to create another User and Items

Screen Shot 2021-05-10 at 7 25 32 PM

Screen Shot 2021-05-10 at 7 25 45 PM

NOTE: The image used will be named only with filename and extension, and will be placed in web-auction-webapp/public/images/

After this, we going to create a normal user

Screen Shot 2021-05-10 at 8 07 12 PM

Done, all is well with the app (http://localhost:3000/).

Screen Shot 2021-05-10 at 8 09 45 PM

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors