A Node application for authentication using typescript,express and mongoDB
- typescript
- express
- mongoDB
- jsonwebtoken
- lodash
-
Get the code
git clone git@github.com:AurangzaibRamzan/authentication-using-node-typescript-mongodb.git && cd authentication-using-node-typescript-mongodb
-
Install dependencies
npm install
-
Starts the development server
npm run dev
-
Starts the production server
npm run start
-
Runs the linter.
npm run lint
npm run lint-fix
- http://localhost:3000/user/signup
- http://localhost:3000/user/login
- http://localhost:3000/user/ (with token in header i.e header :{token:""})
- http://localhost:3000/user/changepassword
The process of submitting a pull request is fairly straightforward and generally follows the same pattern each time:
Show instructions
-
Search GitHub for an open or closed PR that relates to your submission. You don't want to duplicate effort.
-
Fork this project, clone your fork, and configure the remotes:
# Clone your fork of the repo into the current directory git clone https://github.com/<your-username>/<repo-name> # Navigate to the newly cloned directory cd <repo-name> # Assign the original repo to a remote called "upstream" git remote add upstream https://github.com/AurangzaibRamzan/authentication-using-node-typescript-mongodb.git
-
If you cloned a while ago, get the latest changes from upstream:
git checkout master git pull upstream master
-
Create a new branch (off the master branch) to contain your feature, change or fix:
git checkout -b <branch-name>
-
After you have made your changes, run tests and lint checks:
# for test npm test
# for lint check npm run lint
# for lint fix npm run lint-fix
-
Commit your changes using a descriptive commit message.
-
Rebase onto upstream
-
Push your branch to GitHub:
git push origin <branch-name>
-
Open a Pull Request using your branch and fill the required template.
IMPORTANT: By submitting a patch, you agree to license your work under the same license as that used by the project.
Having trouble with repo? Check out our documentation or contact Support aurangzaib987@gmail.com
This project is licensed under the Apache License 2.0, see the LICENSE file for details.