- Responsive
- Cancel Request
- Friendly UI/UX
- Easy Dashboard Backend(Admin)
(Server Side)
- cd Server
- npm install
- node index.js
(Client & Admin Side)
- cd Client
- npm install
- npm start
-
Open your phpmyadmin,add new databse
-anime
-anime_download -
Open the "config > config.json" folder and you will see the code as below
{
"development": {
"username": "root", // Put your username database
"password": null, // Put your password database
"database": "anime",
"host": "localhost",
"dialect": "mysql"
}
} -
In terminal "Server" run code "npx sequelize-cli db:migrate"
-
Delete all file in migrations folder,and add the new file with name "Link_Download.js"
-
Add this code in file "Link_Download.js"
'use strict';
module.exports = {
up: (queryInterface, Sequelize) => {
return queryInterface.createTable('download', {
id : {
type : Sequelize.INTEGER,
primaryKey : true,
autoIncrement : true
},
link_1 : {
type : Sequelize.STRING,
allowNull : true,
defaultValue : null
},
link_2 : {
type : Sequelize.STRING,
allowNull : true,
defaultValue : null
},
link_download : {
type : Sequelize.STRING,
allowNull : true,
defaultValue : null
},
created_at : {
type: Sequelize.DATE
}
});
},
down: (queryInterface, Sequelize) => {
return queryInterface.dropTable('download');
}
};
-
Change code "config > config.json" file as follows :
{
"development": {
"username": "root", // Put your username database
"password": null, // Put your password database
"database": "anime_download",
"host": "localhost",
"dialect": "mysql"
}
} -
migrate again,write the code in Terminal "Server" "npx sequelize-cli db:migrate"
You can check this documentation https://sequelize.org/master/manual/migrations.html
If you :
And that all to improve this project,you can contact me.
im very grateful for your attention for this project 😃
✉️ [email protected]
Happy CODING 😄