Coder Social home page Coder Social logo

rri_frontend's Introduction

RII

A quick project setup documentation for the dev environment.

ENVIRONMENT

  • Linux systems, Windows systems are all valid systems capable of running the project.
  • Have Node js 16 or Later installed on the system.
  • Have Postgres 13 or Later

THE CODE

Clone the project from rri frontend and rri backend and install dependencies

--clone the backend and the fronend projects

>git clone https://github.com/cylab-africa/RRI_backend.git

>git clone https://github.com/cylab-africa/RRI_frontend.git

--CD the backend project

>cd RRI_backend

>npm install

>cd ../

--CD the frontend project

>cd RRI_frontend

>npm install

---For the frontend app you are good to go---

Configure prisma in the dev environment and connect the DB

Create a Database in Postgres and call it {test} (You can use the default user bcz this is a dev env)

USER: “postgres” PASSWORD: “ ”

>sudo -i -u postgres

....

#CREATE DATABASE test

ADD THE .env FILE FOR PRISMA

>cd RRI_backend/src/config

>touch .env

INSIDE the file ADD

''' DATABASE_URL="postgresql://postgres:123@localhost:5432/test" '''

Database migration

> cd RRI_backend

> npm install prisma --save-dev

> cd RRI_backend/scr/db/config

> npx prisma migrate dev --name {anyNameYouWant}

Initialize the database by adding questions

Run the following command

>node RRI_backend/src/utilities/addQuestions.js

RUN THE PROJECT

You can now run the backend and frontend apps

---Run the backend app

>cd RRI_backend

>npm start

---Run the frontend app

>cd RRI_frontend

>npm start

rri_frontend's People

Contributors

irpatrick avatar wambuip avatar

Watchers

Assane Gueye avatar Giulia Fanti avatar  avatar  avatar

Forkers

rri-upanzi

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.