Skip to content

easyPEP/staffomatic-code-challenge

Repository files navigation

Staffomatic Code Challenge

This is a Ruby on Rails API code challenge for managing user schedules. Please follow the instructions below to complete the challenge and submit your work.

Steps to Complete the Challenge

1. Create a New Repository

You will not clone or fork this repository directly. Instead, you should create a new repository from this one using a mirror. This ensures there are no links between your repository and the original.

Mirror the Repository

  1. Clone the repository as a bare repository:
git clone --bare https://github.com/easyPEP/staffomatic-code-challenge staffomatic-code-challenge
  1. Create a new repository on your GitHub account (e.g., staffomatic-code-challenge), but do not initialize it with a README, license, or .gitignore.

  2. Mirror-push the bare repository to your new repository:

cd staffomatic-code-challenge
git push --mirror https://github.com/[YOUR_USERNAME]/staffomatic-code-challenge.git
  1. Remove the temporary local mirror repository:
cd ..
rm -rf staffomatic-code-challenge
  1. Clone the new repository to your local machine:
git clone https://github.com/fluxsaas/staffomatic-code-challenge.git staffomatic-code-challenge
cd staffomatic-code-challenge

2. get the app running

install gems with:

bundle install

add the "super secret" master key to the config folder:

echo "ebeb5c739426e455d429f3d011384b77" > config/master.key

to run the server you can use:

bin/setup

to run the specs with guard:

bin/rails db:test:prepare
bundle exec rspec

or use guard to run tests automatically:

guard

Now, you should have a new repository on your GitHub account without any connection to the original repository.

3. Submit your work

Once the repository is mirrored, create a new branch (e.g., feature/user-allocation) to work on your solution:

git checkout -b feature/user-allocation

Make Your Changes

Proceed to implement the required features, tests, and configurations for the challenge, following the provided specifications.

Create a Pull Request (PR)

Once your changes are complete:

  1. Push your changes to your remote repository:

    git push origin feature/user-allocation
  2. Create a pull request (PR) from your feature branch (feature/user-allocation) to the develop branch in your repository.

Invite for Code Review

After creating the PR, invite me ([your GitHub username]) as a collaborator on your repository. You can do this by going to your repository's SettingsManage AccessInvite Collaborator.

please invite the following:

Please leave a note on the PR inviting me to review the work.


About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published