Python 3.10+ is a must
- Clone the repository in the terminal:
git clone https://github.com/Nattalli/lteam-wine-map.git
- Make the following command and populate it with required data:
cp .env.sample .env
- Create virtual env:
python3.10 -m venv venv
- Setup virtual env:
- On Windows:
venv\Scripts\activate
- On Linux or MacOS:
source venv/bin/activate
- On Windows:
- Go to the
backend
foldercd backend
- And mark it as the source root
- Install requirements:
pip install -r requirements.txt
- Make migrations:
python manage.py migrate
- Create superuser to access the admin panel:
python manage.py createsuperuser
. Or you can use already existed credentials. - Collect static:
python manage.py collectstatic
- Now you can run it:
python manage.py runserver
- First, make sure you have Node.js LTS version(18.14.2 for now) installed on your computer. You can download it from the official Node.js website https://nodejs.org/en/.
- Once the installation is complete, navigate to the frontend directory and run:
npm install
In the project directory, you can run:
npm start
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
npm run build
Builds the app for production to the build
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.