/express-restfulapi-auth

A expressjs RESTful api authorization implementation

Primary LanguageJavaScript

Express simple authorization backend server

this application is for me to proof of concept, follow the MVC structure with model, controller, router and middleware, the middleware will protect the contentRouter

please copy the sample.env to .env file and insert your customized config there

cp sample.env .env

Work together with: https://github.com/devchristam/vue3-login-system

Project setup

npm install

Compiles and hot-reloads for development

npm run test

run docker mongoDB (node runtime is not included in the docker-compose)

npm run serve:db

stio docker mongoDB

npm run down:db

run production

npm run serve