GithubHelp home page GithubHelp logo

00mjk / crossword-editor Goto Github PK

View Code? Open in Web Editor NEW

This project forked from crossword-editor/crossword-editor

0.0 0.0 0.0 6.23 MB

A web app for authoring NY Times style crossword puzzles

Home Page: https://crossword-editor.herokuapp.com/

License: MIT License

Python 21.94% HTML 29.36% CSS 18.11% JavaScript 30.56% Procfile 0.03%

crossword-editor's Introduction

NY Times style crossword editor

A tool to write NY Times style crosswords. Deployed site

Features

With WordNerd, you can start from a blank rectangular grid, fill in the black squares, answers and corresponding clues, save drafts, and even export other formats. The user's homepage lists their draft puzzles and completed puzzles.

Some of the highlights of the editor page are:

  • As you add black squares (by typing a period), by default they will automatically fill in to make the grid rotationally symmetric, which is the convention in published puzzles (this can be switched to other types of symmetry or turned off at any time). Screenshot of the puzzle editor

  • The numbered cells and corresponding slots for across and down clues update instantaneously.

  • Rebus entries (cells that sneakily contain more than one character) can be added. Circled cells are also common in crosswords, and these can also be easily toggled.

  • Basic stats like word/letter counts are also updated in real time. Screenshot of the puzzle stats view

  • Puzzles can be exported to Across Lite format (a common native cross word solving application) to send to a friend to solve or print out. Finally, the user can download a pdf that meets the format required to submit to the New York Times

Local Setup

If you want to run the site locally, first clone this repo and change directories into it:

git clone https://github.com/Crossword-Editor/crossword-editor.git
cd crossword-editor

We use pipenv to manage the Python virtual environment, which you can find information about at https://pipenv.pypa.io/en/latest/. Once pipenv is installed, run pipenv install to set up the virtual environment. If successful (the installation of psycopg2 sometimes requires some troubleshooting), then run pipenv shell to activate the virtual environment.

Finally, copy the sample .env file:

cp config/.env.sample config/.env

Postgres Setup

The puzzle instances and user data are stored in a Postgres database. Assuming Postgres is set up on your computer, the following sets up the database to match the ./config/.env.sample.

createuser -d editor
createdb -U editor editor

If you prefer to replace 'editor' be another name for the user and database, make sure to update .env accordingly.

Since we're using a new database, we need to migrate:

python manage.py migrate

Hopefully, you see a lot of OK's. Finally, try running the server to make sure everything is working:

python manage.py runserver

If successful, you should see a message in the terminal informing you what localhost address to visit.

crossword-editor's People

Contributors

bbonsign avatar muthaearth avatar dependabot[bot] 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.