Julien-DelMoral / AlfredProject-nodejs-angular-mysql

Node.js (REST API) + Angular Frontend + MySQL

Home Page:https://alfred.jdelm.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Node.js (REST API) + Angular + MySQL

This is a boilerplate project. The project contains Node.js REST API and frontend developed by Angular.

  • API
    • Node.js, Express, JWT, Promise MySQL, Node Mailer Nodemon
  • Frontend - Angular
    • Material ui, Toastr

Demo

Service Endpoint
API https://alfred.jdelm.com/api/
Frontend - Angular https://alfred.jdelm.com/

How to start in your local environment

# Docker mysql and fake smtp
$ docker-compose up -d
# Front
cd frontend-angular
npm start
# Api
cd api
npm run build
npm run dev

Then you can access services with below URL.

Service Endpoint
API http://localhost:3000
Frontend http://localhost:4200
Mail http://localhost:8025
MySQL localhost:3307

There are two user in the database initially. You can use them to login Frontend.

Username Email Password
admin admin@alfred.local 123456
user user@alfred.local 123456

MySQL

In the folder mysql/sql, there is a SQL file called inital.sql, which will become initial database table/rows. MySQL port is mapped to 3307.

Features

  • Frontend - Angular

    • User registration
    • Confirm user email address
    • Reset user password
    • User login/logout

Todo

  • Docker
  • CI/CD
  • Unit tests
  • E2E tests

About

Node.js (REST API) + Angular Frontend + MySQL

https://alfred.jdelm.com

License:MIT License


Languages

Language:TypeScript 61.3%Language:HTML 19.7%Language:SCSS 16.5%Language:JavaScript 2.1%Language:Shell 0.2%Language:Dockerfile 0.1%