Skip to content

kamelferrahi/free-survey-backend

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This website made with

frontend : gatsby tailwind
integration : axios
backend : nodejs express

for Codelabs Academy FullStack Dev Challenge


to start the website locally we need two part(backend and front)
backend : https://github.com/wadjih-bencheikh18/free-survey-backend
frontend: https://github.com/wadjih-bencheikh18/free-survey-frontend


I-Backend:
 1- clone backend project:
   a- open your cmd
   b- tape :
     git clone https://github.com/wadjih-bencheikh18/free-survey-backend.git
    (to install git : https://git-scm.com/book/en/v2/Getting-Started-Installing-Git)
   c- go to cloned repo :
     cd free-survey-backend
 2- install packages :
    yarn install
   (to install yarn : https://classic.yarnpkg.com/en/docs/install)
 3- start our local server in port 8080 :
  > yarn start

II-Fontend:
 1- clone backend project:
   a- open your cmd
   b- clone :
    git clone https://github.com/wadjih-bencheikh18/free-survey-fontend.git
   c- go to cloned repo :
     cd free-survey-fontend
 2- install packages :
    yarn install
 3- start your local website http://localhost:8000 :
    yarn start
 4- enter the website using navigator on: http://localhost:8000



How to add external data persistence?

if we want to use external data persistence we can do it "MongoDb" by following the next steps:
1- add MongoDb and mongoose to our project:
   yarn add mongodb mongoose -D
2- connect to our database (we can use atlas)
  exmple : mongoose.connect("mongodb+srv://"username":"password"@freesurvey.4qkzo.mongodb.net/Database?retryWrites=true& w=majority");
3- create surveys mongoose Schema
4- create our api using express router

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • JavaScript 100.0%