This is my personal portfolio backend built with Express.js and TypeScript.
- Clone the repository:
git clone https://github.com/johnmichealacera/portfolio-backend-express.git
- Navigate to the project directory:
cd portfolio-backend-express
- Install dependencies:
npm install
The application requires the following environment variables to be set:
PORTFOLIO_FRONTEND_URL
: The url for the portfolio frontend built in vue.REDIS_STRING_URL
: The redis cache string url.MYSQL_HOST
: The MySQL hostMYSQL_USERNAME
: The MySQL usernameMYSQL_PASSWORD
: The MySQL passwordMYSQL_DATABASE
: The MySQL database
Create a .env
file in the root directory of the project with the following values as per your requirements.
Note: Make sure to never commit your .env
file to version control. You can add it to your .gitignore
file to ensure it is not accidentally committed.
- Start the development server:
npm run dev
- Navigate to
http://localhost:5000/
in your favorite API development tool.
- Express - The backend framework used
- MySQL - the database used to store and read information
- Redis - the cache used
- Fork the repository
- Create a new branch:
git checkout -b feature-name
- Make changes and commit:
git commit -m 'Add some feature'
- Push to the branch:
git push origin feature-name
- Submit a pull request
This project is licensed under the MIT License - see the LICENSE.md file for details.