This is a simple validator, to save, delete, retrieve and blacklist cpf and cnpj.
To use this repo first run:
$ npm install
- If any problem with node-sass occurs, just run
npm i node-sass
that it will work
Then if its not already initialized, start mongod
service
with:
$ sudo service mongod start
--> Ubuntu
$ brew services start mongodb
--> Mac
To run dev mode:
$ npm run dev
To run tests:
$ npm run test
To run production files:
$ npm run start:prod
This project uses Vuejs in front and Nodejs/Express in the backend
with MongoDB as NoSQL server.
Starting with the backend, it was aimed to be as simple as possible,
just to support the front-end needs, that's why it does the job of serving
the static file of the front-end as also running the REST API.
The front-end uses Vue and Vuex as a way to keep all the important data
in one place.
The model of front mimics the model of the back, that is an object holding
the current view type and a list of certifications.
const state = {
type: '',
certifications: []
}
For the styling the chosen framework is Bulma because its lighter then the others frameworks