zuri-training / team-6-auth-wiki

A wiki to ease developers' work by providing a user authentication libraries that can be used as middleware within a web application to authenticate (their application user) requests.
MIT License
6 stars 14 forks source link

Auth Wiki — Team 6

A wiki to ease developers' work by providing a user authentication librariesthat can be used as middleware within a web application to authenticate (their application user) requests.


View the demo here.

Contributors

The list of contributors to this project and their contributions is available here

Getting Started

First of all Fork and Clone Repository

  1. Fork the repository: Click the "Fork" button on the upper right corner of the Repository page.

  2. Make a Local Clone: Clone the forked repository to your local machine (computer)

git clone https://github.com/zuri-training/team-6-auth-wiki.git
  1. Track the original repository as a remote of the fork:
git remote add --track main upstream https://github.com/zuri-training/team-6-auth-wiki.git
git fetch upstream
  1. Create a new branch for your changes
# replace branch_name with your branch name
git checkout -b branch_name upstream/main
  1. Make your changes, Add, commit, and push the changes

After making neccessary changes Run

git add <filename>
git commit -m "add your commit message"
git push -u origin branchname
  1. Submit your pull request You’re now all ready to submit the improvement you’ve made to the project’s maintainers for aproval. Head over to the original repositories Pull Requests tab, and you should see an automatic suggestion from GitHub to create a pull request from your new branch.

Running the application

Backend

Change to the /api directory

cd api

Install composer's dependencies

composer install

Composer's post install script will setup the configuration and run the migrations

Start the server

php spark serve

Frontend

In the project directory, you can run:

npm start

Runs the app in the development mode.\ Open http://localhost:3000 to view it in your browser.

The page will reload when you make changes.\ You may also see any lint errors in the console.

npm test

Launches the test runner in the interactive watch mode.\ See the section about running tests for more information.

npm run build

Builds the app for production to the build folder.\ It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.\ Your app is ready to be deployed!

Samples