This repo for my final backend specialisation provided by Meta
- You need to install python, if you dont have it installed already
- You need to setup your virtual enviroment, in case for this project we use
pipenv shell
command to create or activate virtual enviroment and it will createPipfile
which contained all neccessary setup such as version of python you are using. - you have to create project using
django-admin startproject backend_capstone
command here in the backend_capestone is the project name and create app with this commanddjango-admin startapp backend_capestone_app
here backend_capestone_app is the nae of the app. - you need to install django using
pipenv install django
command - you need to install django using
pipenv install djangorestframework
command
- You ve to download and install mysql , if you dont have it installed already once you are done, then run the following command to
sudo mysql -u root -p
or simply remove the sudo and run the command for Window os. - by default mysql has password "" then click enter
- then you have to create new database using the following command
create database backenddb;
once you run the command. - then create user if you are not a root user with the following command
CREATE USER 'adminbackend'@'localhost' IDENTIFIED BY 'backend@123';
and grant all previledges to the user and run flush previledges. Below is the screen short of the mysql setup.