Git Product home page Git Product logo

social-survery-app-backend's Introduction

Social Survey App Backend

"Social Survey App" projesi, backend tarafı. Node.js ile yazılmakta.

Live Api @ https://socialsurveyapp.software/api/v1/

Live Swagger Docs @ https://socialsurveyapp.software/api/v1/docs

(id: admin, pw: isütez)

Kurulum

Sistemde Node.js >=12.0.0 sürümü ve Yarn paket yöneticisi kurduktan sonra, projenin bulunduğu dizindeki bir terminalden yarn yazarak gerekli paketleri kurup yarn dev ile projeyi development modunda ayağa kaldırabilir veya yarn start yazarak production modunda ayağa kaldırabilirsiniz.

Bir domain üzerinden sunmak için Nginx kurup, örnek konfigürasyon dosyasını domaine özel şekilde ayarlamak yeterli olacaktır. Ayrıca Let's Encrypt ile sudo certbot --nginx -d domain.uzantı -d www.domain.uzantı ile SSL sertifikası da kolayca alınabilir.

Notlar

  • Dosya dizininde ayrıca bir ".env" dosyası olmalı. Bununla ilgili örnek ".env.example" dosyasında bulunmaktadır. Bu example dosyası development aşamasında ismi değiştirilerek kullanılabilir.

  • Sıfırdan kurulmuş bir konteynerda, MongoDB kullanıcı adı ve şifre oluşturmak için docker ps ile MongoDB konteynerının adını bulup docker exec -it konteyner-adı bash komutu ile konteynera shell izni alınmalıdır. Bu shellden de gerekli kullanıcı oluşturulmalıdır. Örnek adımlar;

docker exec -it social-survey-app-backend_mongodb_1 bash
mongo
use admin
db.createUser({user:"user", pwd:"password", roles:["root"]});

.env dosyasına gerekli değişkenler yazıldıktan sonra Node uygulamasının tekrar çalıştırılması (eğer Docker ile çalıştırılıyorsa konteynerların kapatılıp açılması) gerekiyor.

social-survery-app-backend's People

Contributors

karaeren avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

harshsutaria

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.