A fun project that on A RESTful API for namefy. Estimates your age based on your first name. The app mocks a backend using JSON server, it searches for s username in the database to return the age and creates one if it does not exists.
This project was built using:
- Javascript
- Html5
- Css3
- Bootstrap
To get the content of this project locally you need to run this command in your terminal:
-
git clone
[email protected]:Kalunge/namefy.git
-
cd namefy
-
npm install
-This command will download all the dependancies of the project -
Add json server to create a backend for the application
npx npm install -g json-server
-
Start JSON Server
json-server --watch db.json
-
run the index.htm file in your browser, beware of using live server if you have autosave in your vscode as it triggers unwanted refresh.
For tracking linter errors locally you need to follow these steps:
-
After cloning the project you need to run this command
-
For tracking the linter errors in HTML file run:
npx hint .
-
For tracking the linter errors in CSS file run:
npx stylelint "\*_/_.{css,scss}"
-
And For tracking the linter errors in JavaScript file run:
npx eslint .
Feel free to check the issues page
Give a โญ if you like this project!
- Much appreciation to the the EntireMoring staff and student community
- Api Provided by namefy