Coder Social home page Coder Social logo

codang's Introduction

Note - PLEASE VISIT https://www.shortto.com/codang to try the working app.

CODANG

An app to practice problems. Using codechef API

Features :

  1. Get problems listed by tags
  2. list info about each problem
  3. Select tags by categories
  4. Logged in user can add personal tags
  5. (ftr) each problem has own page
  6. (ftr) get profile page
  7. (ftr) todo lists
  8. (ftr) submit problem

Plan :

  • Understand API
  • Plan Functions
  • Make Relations
  • 10 Iterations for above two
  • Reconfirm and Normalise DBMS
  • Fetch full DBMS paralelly
  • dump dbms schema
  • Make and check all routes iteratively parallely
  • work on frontend iteratively parallely
  • frontend -> oauth, rules, simple to advanced iteration, extra features from api
  • dump server setup
  • deploy on azure
  • try deploy all azure, or deploy fe to netlify and add a backend not live try between 3pm-9pm alert in fe

STEPS

These are from old project

  1. Download all prereqs like node vue git php composer(with php) nuxt etc etc etc
  2. Install nginx
  3. Install php-fpm php-xml php-mbstring
  4. Add a file in /etc/nginx/sites-available/ -> codetrophs.com
  5. In codetrophs.com make php socket 7.2 and root as ~/Documents/codetrophs 4b. Add ln -S to that in sites-enabled
  6. chown -R $USER:$USER in codetrophs directory
  7. test and restart by sudo nginx -t and sudo service nginx restart
  8. Install postgresql and postgresql-contrib
  9. Change to user and start postgres by -> 1.(sudo -i -u postgres) 2.(psql) (Exit by typing \q and then exit)
  10. Add more users to postgres and work in their databases only
  11. download composer file and move its bin to /usr/local/bin
  12. composer is used to install slim/slim and slim/psr7 11b. make index.php in public folder and write api routes
  13. Copy web server settings to nginx from slim site and change port for php-fpm in www.conf or something at /etc/php/7.2/fpm/pool.d by doing listen=9000;
  14. install php-pgsql, activate in etc/php/7.2/[cli|fpm]/php.ini and then connect with dbms 13b. Also installed php cs fixer extension and composer in directory.
  15. all nginx, php7.2-fpm, postgresql services should be running. nginx default server can point to your frontend or you can have routes for it if you want to host multiple apps. No need to start php server as things get routed to fmp server automatically which I have set to be running at 9000.
  16. Also I used postman and its desktop agent for backend requests.

Added in this project

  1. requests from php made with curl libcurl3 libcurl3-dev php7.2-curl OR libcurl4 packages and restart fpm and check in phpinfo() if curl section appears

codang's People

Contributors

nandeeshg avatar

Watchers

 avatar  avatar

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.