Git Product home page Git Product logo

codic-education-server's Introduction

SETTING UP WEB(REACT)

1. Setup the project on local machine:

  git clone https://github.com/ArastoSahbaei/transbit-web.git
  cd <folder>
  npm install
  npm start

2. Create a .env file in the root of the project with the following variables:

  REACT_APP_ENVIROMENT = DEVELOPMENT

SETTING UP SERVER(NODE.TS EXPRESS MONGOOSE)

1. Setup the project on local machine:

  git clone https://github.com/ArastoSahbaei/BITup-server
  cd <folder>
  npm install
  npm start

2. Create a .env file in the root of the project with the following variables:

    ENVIROMENT = DEVELOPMENT
    TOKEN_SECRET = <string>
    BCRYPT_SALT_ROUNDS = <number>
    EMAIL_PW = <string>
    DEV_DATABASE_URL = <string> EXAMPLE: mongodb://localhost:27017/bitup
    DEV_BTCPAY_TOKEN = <string>
    DEV_BINANCE_TOKEN = <string>
    DEV_BINANCE_SECRET = <string>
    DEV_WEB_URL = <string> EXAMPLE: http://localhost:3000

3. Insomnia Import the file found in /insomnia/* into Insomnia. This should provide you with all API-calls.

SETTING UP MOBILE(REACT NATIVE)

codic-education-server's People

Contributors

arastosahbaei avatar deskavaenkelt avatar ianertson avatar itssteph avatar sabrina366 avatar sebbekarlsson avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

codic-education-server's Issues

Create JobApplication CRUD

The backend should provide current open job applications.

Step 1. Ta reda på vilka fält som behövs
Step 2. Skapa Model
Step 3. Skapa Controller(funktionalitet för att skapa, ta bort, uppdatera, hämta)
Step 4. Skapa route
Step 5. Skapa API Call igenom Insomnia

title
description
prefered knowledge
experience
Applications: [{
Namn
Efternamn
Email
TelefonNR
Personligt brev
När man sökte jobbet
CV (BLOB)
}]

upload image with employee

when creating a new employee as a admin i should be able to post the data and the image in one request.

Fix labels

Add the same labels from the frontend project to the backend project.

add token verification to necessary API calls

There is a middleware, authenticateBasicUser.js, that verifies the token to the user before making the API call.

What to do:
Add this middleware to all API calls in the route files that require user verification. This does NOT include the API calls that require admin prevledige.

important note:
The API calls that run this middleware will require a id field that is sent through the body, request.body.id.
This might require further refactorization if the id is received in any other form. Also note that this can cause the client side API's to stop working and might require some refactoring. Make sure you document which frontend calls that might require refactoring.

send verification mail to user on registration

When a user registers on the application he/she is required to verify email within a time limit.

  1. Send email verification when a user registers with a URL

  2. when the user clicks on the URL atached to the email he/she will be rendered to the client(frontend) application that updates

Note: What do we do with users that register but have not verified their email?

send verification email to new registered user

When a user registered on the application a email should be sent to the new registered account.

The user is required to press the link that is sent to verify the auth of the email.

When the user clicks on the email sent they should be rendered to a view that makes a API call to set isEmailVerified from false to true

Important Note:
What happens to users that dont follow this instruction?

Backend returning [] instead of {}

When signing in to the system a array with a object is returned. Instead the object itself should be returned.
image

The array is then turned into a object when recieved in the frontend. This must be adjusted aswell.

Readme documentation server

Create a proper readme file with instructions on how to get the project up and running for new developers

verify token on API calls

If a signed in user decides to update any data about the her/him the token should be verified on the serverside to ensure that nobody else is manipulating that specific data.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.