SlideShare a Scribd company logo
1 of 3
Create a new MySQL database called bulletinboard
Step 3
Run migrations to create two new tables: users and posts
These tables should have the following structure:users:
UserId: integer, autoincrement, primary key, not null
FirstName: string
LastName: string
Username: string, unique
Password: string
Email: string, unique
Admin: boolean, default value is false, not null
createdAt: date, not null
updatedAt: date, not null
posts:
PostId: integer, autoincrement, primary key, not null
PostTitle: string
PostBody: string
UserId: integer, foreign key to UserId in users table
createdAt: date, not null
updatedAt: date, not null
Step 4
Update models to reflect the create table migrations
Don't forget the associations
Step 5
Users should be able to Signup/Login/Logout
Use JWT for secure login (hashing and salting passwords)
Step 6
Users should be able to create, edit, and delete
Be able to click on a post to update or delete it
Run a migration to add a Deleted column
After the post has been deleted, redirect the user to their profile page
Step 7
Users should be able to view their profile page. Their profile page should render the following:
Their full name
Their username
The posts they have written
Step 8
Admin users should be able to see a list of all users that have not been deleted by the user's first
and last name
Run another migration to add a Deleted column
Render a different hbs file for the Admin profile page, which should list all users
Every Admin should see the same page. Use the route /users/admin
Step 9
Admin users should be able to click on a user and view their information, but not edit their
information
Use the route /users/admin/editUser/:id
Step 10
Admin users should be able to Delete users and their posts, but not edit them
Step 11
Add some styling to your application so it is unique to your taste

More Related Content

Similar to Create a new MySQL database called bulletinboard Step 3 Run migrations.docx

My Lexis - Administrator User Guide
My Lexis - Administrator User GuideMy Lexis - Administrator User Guide
My Lexis - Administrator User Guide
Jessica Steiner
 
SOP_ERP_AdministrationModule
SOP_ERP_AdministrationModuleSOP_ERP_AdministrationModule
SOP_ERP_AdministrationModule
Sunil Mukadam
 
Cis 407 i lab 6 of 7
Cis 407 i lab 6 of 7Cis 407 i lab 6 of 7
Cis 407 i lab 6 of 7
helpido9
 
Trello: Setting up an organization system for your journalism staff
Trello: Setting up an organization system for your journalism staffTrello: Setting up an organization system for your journalism staff
Trello: Setting up an organization system for your journalism staff
Danielle Ryan
 
Cis407 a ilab 6 web application development devry university
Cis407 a ilab 6 web application development devry universityCis407 a ilab 6 web application development devry university
Cis407 a ilab 6 web application development devry university
lhkslkdh89009
 
need help completing week 6 ilab.. i will upload what I currently ha.docx
need help completing week 6 ilab.. i will upload what I currently ha.docxneed help completing week 6 ilab.. i will upload what I currently ha.docx
need help completing week 6 ilab.. i will upload what I currently ha.docx
niraj57
 
Designing an ExtJS user login panel
Designing an ExtJS user login panelDesigning an ExtJS user login panel
Designing an ExtJS user login panel
Arun Prasad
 
Chapter03 Creating And Managing User Accounts
Chapter03      Creating And  Managing  User  AccountsChapter03      Creating And  Managing  User  Accounts
Chapter03 Creating And Managing User Accounts
Raja Waseem Akhtar
 
Oracle apex hands on lab#2
Oracle apex hands on lab#2Oracle apex hands on lab#2
Oracle apex hands on lab#2
Amit Sharma
 
1.1. You are assigned to develop a personalized contacts management .pdf
1.1. You are assigned to develop a personalized contacts management .pdf1.1. You are assigned to develop a personalized contacts management .pdf
1.1. You are assigned to develop a personalized contacts management .pdf
fancycollection2010
 

Similar to Create a new MySQL database called bulletinboard Step 3 Run migrations.docx (20)

srt311 Project2
srt311 Project2srt311 Project2
srt311 Project2
 
My Lexis - Administrator User Guide
My Lexis - Administrator User GuideMy Lexis - Administrator User Guide
My Lexis - Administrator User Guide
 
Adminstrator: Users
Adminstrator: UsersAdminstrator: Users
Adminstrator: Users
 
Blog application
Blog applicationBlog application
Blog application
 
SOP_ERP_AdministrationModule
SOP_ERP_AdministrationModuleSOP_ERP_AdministrationModule
SOP_ERP_AdministrationModule
 
Cis 407 i lab 6 of 7
Cis 407 i lab 6 of 7Cis 407 i lab 6 of 7
Cis 407 i lab 6 of 7
 
Trello: Setting up an organization system for your journalism staff
Trello: Setting up an organization system for your journalism staffTrello: Setting up an organization system for your journalism staff
Trello: Setting up an organization system for your journalism staff
 
Cis407 a ilab 6 web application development devry university
Cis407 a ilab 6 web application development devry universityCis407 a ilab 6 web application development devry university
Cis407 a ilab 6 web application development devry university
 
Less07 Users
Less07 UsersLess07 Users
Less07 Users
 
need help completing week 6 ilab.. i will upload what I currently ha.docx
need help completing week 6 ilab.. i will upload what I currently ha.docxneed help completing week 6 ilab.. i will upload what I currently ha.docx
need help completing week 6 ilab.. i will upload what I currently ha.docx
 
Library Management System
Library Management SystemLibrary Management System
Library Management System
 
ASP.NET Identity
ASP.NET IdentityASP.NET Identity
ASP.NET Identity
 
Designing an ExtJS user login panel
Designing an ExtJS user login panelDesigning an ExtJS user login panel
Designing an ExtJS user login panel
 
Ext js user login panel
Ext js user login panelExt js user login panel
Ext js user login panel
 
Chapter03 Creating And Managing User Accounts
Chapter03      Creating And  Managing  User  AccountsChapter03      Creating And  Managing  User  Accounts
Chapter03 Creating And Managing User Accounts
 
Oracle apex hands on lab#2
Oracle apex hands on lab#2Oracle apex hands on lab#2
Oracle apex hands on lab#2
 
1.1. You are assigned to develop a personalized contacts management .pdf
1.1. You are assigned to develop a personalized contacts management .pdf1.1. You are assigned to develop a personalized contacts management .pdf
1.1. You are assigned to develop a personalized contacts management .pdf
 
Collect twitter data using python
Collect twitter data using pythonCollect twitter data using python
Collect twitter data using python
 
Using the add multiple users plugin
Using the add multiple users pluginUsing the add multiple users plugin
Using the add multiple users plugin
 
IBM Lotus iNotes 8.5 Customization
IBM Lotus iNotes 8.5 CustomizationIBM Lotus iNotes 8.5 Customization
IBM Lotus iNotes 8.5 Customization
 

More from CharlesXMLAllano

More from CharlesXMLAllano (20)

dasperiet destrityben- Itivisceffoent if yerapon for 200n7 W- while th.docx
dasperiet destrityben- Itivisceffoent if yerapon for 200n7 W- while th.docxdasperiet destrityben- Itivisceffoent if yerapon for 200n7 W- while th.docx
dasperiet destrityben- Itivisceffoent if yerapon for 200n7 W- while th.docx
 
Darwin was influenced by many people and events- Which of the followin.docx
Darwin was influenced by many people and events- Which of the followin.docxDarwin was influenced by many people and events- Which of the followin.docx
Darwin was influenced by many people and events- Which of the followin.docx
 
Daniel Collins is going to meet with a development specialist at the c.docx
Daniel Collins is going to meet with a development specialist at the c.docxDaniel Collins is going to meet with a development specialist at the c.docx
Daniel Collins is going to meet with a development specialist at the c.docx
 
d- void doubleIt (int -- A) -{ count -1- while (count - A- Iength ){.docx
d- void doubleIt (int -- A) -{ count -1- while (count - A- Iength ){.docxd- void doubleIt (int -- A) -{ count -1- while (count - A- Iength ){.docx
d- void doubleIt (int -- A) -{ count -1- while (count - A- Iength ){.docx
 
D- Bases for the classificanion of igneass rockt Clasulicarion of ighe.docx
D- Bases for the classificanion of igneass rockt Clasulicarion of ighe.docxD- Bases for the classificanion of igneass rockt Clasulicarion of ighe.docx
D- Bases for the classificanion of igneass rockt Clasulicarion of ighe.docx
 
D) The medial meniscus E) The lateral meniscus 73) Answer all the part.docx
D) The medial meniscus E) The lateral meniscus 73) Answer all the part.docxD) The medial meniscus E) The lateral meniscus 73) Answer all the part.docx
D) The medial meniscus E) The lateral meniscus 73) Answer all the part.docx
 
Cutetan l of 3 theEipition 1 of 5e Tertheng and Medin its of daripints.docx
Cutetan l of 3 theEipition 1 of 5e Tertheng and Medin its of daripints.docxCutetan l of 3 theEipition 1 of 5e Tertheng and Medin its of daripints.docx
Cutetan l of 3 theEipition 1 of 5e Tertheng and Medin its of daripints.docx
 
Current Position Analysis The following items are reported on a compan.docx
Current Position Analysis The following items are reported on a compan.docxCurrent Position Analysis The following items are reported on a compan.docx
Current Position Analysis The following items are reported on a compan.docx
 
Current evidence indicates that the process of photosynthesis arose mo.docx
Current evidence indicates that the process of photosynthesis arose mo.docxCurrent evidence indicates that the process of photosynthesis arose mo.docx
Current evidence indicates that the process of photosynthesis arose mo.docx
 
Current Attempt in Progress- Pharoah Ltd is a Canadian private company.docx
Current Attempt in Progress- Pharoah Ltd is a Canadian private company.docxCurrent Attempt in Progress- Pharoah Ltd is a Canadian private company.docx
Current Attempt in Progress- Pharoah Ltd is a Canadian private company.docx
 
Current Attempt in Progress The following function is probability mass.docx
Current Attempt in Progress The following function is probability mass.docxCurrent Attempt in Progress The following function is probability mass.docx
Current Attempt in Progress The following function is probability mass.docx
 
Current Attempt in Progress The adjusted trial balance of Sandhill Com.docx
Current Attempt in Progress The adjusted trial balance of Sandhill Com.docxCurrent Attempt in Progress The adjusted trial balance of Sandhill Com.docx
Current Attempt in Progress The adjusted trial balance of Sandhill Com.docx
 
Current Attempt in Progress Lindy Weink- the new controller of Ivanhoe.docx
Current Attempt in Progress Lindy Weink- the new controller of Ivanhoe.docxCurrent Attempt in Progress Lindy Weink- the new controller of Ivanhoe.docx
Current Attempt in Progress Lindy Weink- the new controller of Ivanhoe.docx
 
Curiosity is an aptly named rover that is a part of NASA's Mars Explor.docx
Curiosity is an aptly named rover that is a part of NASA's Mars Explor.docxCuriosity is an aptly named rover that is a part of NASA's Mars Explor.docx
Curiosity is an aptly named rover that is a part of NASA's Mars Explor.docx
 
Current Attempt in Progress Chris Newman will invest $10-470 today in.docx
Current Attempt in Progress Chris Newman will invest $10-470 today in.docxCurrent Attempt in Progress Chris Newman will invest $10-470 today in.docx
Current Attempt in Progress Chris Newman will invest $10-470 today in.docx
 
Current assets Total assets Current liabilities Total liabilities Net.docx
Current assets Total assets Current liabilities Total liabilities Net.docxCurrent assets Total assets Current liabilities Total liabilities Net.docx
Current assets Total assets Current liabilities Total liabilities Net.docx
 
Cullumber Company manufactures pizza sauce through two production depa.docx
Cullumber Company manufactures pizza sauce through two production depa.docxCullumber Company manufactures pizza sauce through two production depa.docx
Cullumber Company manufactures pizza sauce through two production depa.docx
 
CRP expression in the liver is most readily induced by what-A- TNF-alp.docx
CRP expression in the liver is most readily induced by what-A- TNF-alp.docxCRP expression in the liver is most readily induced by what-A- TNF-alp.docx
CRP expression in the liver is most readily induced by what-A- TNF-alp.docx
 
Critically evaluate the Edinburgh Tram project execution and closure a.docx
Critically evaluate the Edinburgh Tram project execution and closure a.docxCritically evaluate the Edinburgh Tram project execution and closure a.docx
Critically evaluate the Edinburgh Tram project execution and closure a.docx
 
Cross Section 4- The complicated one! Several unconformitics- meaning.docx
Cross Section 4- The complicated one! Several unconformitics- meaning.docxCross Section 4- The complicated one! Several unconformitics- meaning.docx
Cross Section 4- The complicated one! Several unconformitics- meaning.docx
 

Recently uploaded

Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
negromaestrong
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
Chris Hunter
 

Recently uploaded (20)

How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural ResourcesEnergy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
 

Create a new MySQL database called bulletinboard Step 3 Run migrations.docx

  • 1. Create a new MySQL database called bulletinboard Step 3 Run migrations to create two new tables: users and posts These tables should have the following structure:users: UserId: integer, autoincrement, primary key, not null FirstName: string LastName: string Username: string, unique Password: string Email: string, unique Admin: boolean, default value is false, not null createdAt: date, not null updatedAt: date, not null posts: PostId: integer, autoincrement, primary key, not null PostTitle: string PostBody: string UserId: integer, foreign key to UserId in users table createdAt: date, not null updatedAt: date, not null Step 4 Update models to reflect the create table migrations Don't forget the associations
  • 2. Step 5 Users should be able to Signup/Login/Logout Use JWT for secure login (hashing and salting passwords) Step 6 Users should be able to create, edit, and delete Be able to click on a post to update or delete it Run a migration to add a Deleted column After the post has been deleted, redirect the user to their profile page Step 7 Users should be able to view their profile page. Their profile page should render the following: Their full name Their username The posts they have written Step 8 Admin users should be able to see a list of all users that have not been deleted by the user's first and last name Run another migration to add a Deleted column Render a different hbs file for the Admin profile page, which should list all users Every Admin should see the same page. Use the route /users/admin Step 9 Admin users should be able to click on a user and view their information, but not edit their information Use the route /users/admin/editUser/:id Step 10
  • 3. Admin users should be able to Delete users and their posts, but not edit them Step 11 Add some styling to your application so it is unique to your taste