Giter VIP home page Giter VIP logo

memcode's Introduction

Gitpod Ready-to-Code Open Source Helpers

Site ❤️: http://www.memcode.com

Trello board: https://trello.com/b/UN0Vnv80/memcode (here you can see what we're working on, what features are to come, and what PRs are welcome)

Slack board: write to [email protected] to request access.


Would you like some help with memcode?

Can you offer some help with memcode yourself?

You are very welcome to send a PR to this repository.


Initial setup for development:

Note: if you'd like to use online development environment, see https://github.com/lakesare/memcode/blob/master/Gitpod.md. Steps below are for local setup.

Create a database postgres user with a password.

  1. Install PostgreSQL.
  2. Go to postgres console: psql postgres.
  3. Create a postgres user with password: CREATE ROLE postgres WITH LOGIN PASSWORD 'your password here'.
  4. Give them a permission to create dbs, own all extensions etc.: ALTER ROLE postgres with superuser;.

Copypaste environment variables.

  1. Ask someone for env.js file, put it in the root folder (next to package.json). Inside of env.js, change DB_USER and DB_PASSWORD to relevant values (your postgres's user and password).

Install needed libraries.

  1. Install npm.

How to run a development site locally?

Set up the database.

  1. Create a new development database 'memcode': make db-reset.

Start code compilers and server.

  1. Run npm install.
  2. Run make backend-webpack, make frontend-webpack, make start. If you are on windows - you can use equivalent npm commands.

Optionally: populate database (please request access to heroku from the owner if you truly need access to production database for some reason).

  1. Install heroku cli.
  2. heroku login.
  3. Make sure heroku knows about our app: heroku git:remote -a memcode.
  4. Pull courses from the database with make heroku-db-pull.

How to run tests?

Set up database

  1. Create a new test database 'memcode_test': make test-db-reset.

Start test-runners

  1. Run npm install.
  2. make test-backend for backend, and make test-frontend. Both will be automatically compiling code in the runtime, so you don't need to bother with code compilers. Both run code in **/*/... .test.js file inside of, respectively, backend and frontend folders.

memcode's People

Contributors

lakesare avatar kgashok avatar branch-bandit avatar barely-ninja avatar anandvenkat4 avatar pavikishoor avatar codertocode avatar dependabot[bot] avatar tamilzh avatar rubymythili 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.