number-generator

Alert

There is only one commit done after deadline, which is the build android apk you can find it under build\app\outputs\flutter-apk\app-release.apk

Of course you can dismiss this commit and evaluate based on the previous commits only

Edits

Merged Backend Branch with main in order not to have to clones on your local machine.

App Status

  • design the API
  • design app views
  • add sign up/in input validations
  • add sign up/in and logout basic flow
  • add save generated numbers to a file logic
  • add find a number validation
  • add find a number logic
  • refactor the app
  • deploy the database online

Set up the environment

1 - install the Dependencies

npm install

2 - add the environment variables

  • create a file named .env in project root directory
  • add the following variables with your values

DB_USERNAME, DB_PASSWORD, DB_NAME, DB_HOST ,DB_PORT

3 - run the application

npm start

Endpoints

curl -X POST -H "Content-Type: application/json" \
    -d '{"fname": "first name", "lname": "last name", "email": "email@example.com", "password": "your password"}' \
    localhost/signup
curl -X POST -H "Content-Type: application/json" \
    -d '{"email": "email@example.com", "password": "your password"}' \
    localhost/login