Foocoding Node.js portfolio project - Jul 2023
What should be included?
- Home
- My work
- Personal / Bio
- Contact
- Admin
Requirement:
- Get and post data.
- Single page application
- Responsive design
- Trello board
- Google EVERYTHING
- Team (optional)
- Host the site (optional)
- Build backend with express server
- Create database (MySQL)
Deployment links:
- https://portfolio-mysql-db.fly.dev/ - availabe for admin only
- https://github.com/yulsmir/portfolio-mysqldb-fly.io
Setup for a local run:
- Clone repo
- Make a copy of .env.sample and rename it as .env.
- Inside
.env
:- put your database user name into
MYSQL_USER
and - put your database user password into
MYSQL_PASSWORD
- put your database user name into
- Make sure your database is called
portfolio_node
- Import
portfolio_node.sql
database or just run sql queries in mysql console to create a db. - Run
npm install
to instal dependencies - Run
node src/testDb.js
to test db connection - Run
npm run start:dev
to start project locally - Open in browser
localhost:3000
or127.0.0.1:3000