Skip to content

Site meant to help memorize [any] things and keep these memories using eventual repetition.

License

Notifications You must be signed in to change notification settings

Rubymythili/memcode

 
 

Repository files navigation

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)


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:

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 database

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

Start code compilers and server.

  1. Run npm install.
  2. make start, make backend-webpack, make frontend-webpack

Optionally: populate database.

  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.

About

Site meant to help memorize [any] things and keep these memories using eventual repetition.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 76.1%
  • CSS 21.9%
  • TSQL 1.1%
  • Makefile 0.9%
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy