Skip to content

arandomdma/stuyspec-rewrite

 
 

Repository files navigation

stuyspec.com

.github/workflows/vercel.yml license

The new client-side application of The Stuyvesant Spectator, built using various modern technologies including NextJS, Typescript, and MongoDB

Getting Started

  1. Clone the repository
git clone https://github.com/stuyspec/stuyspec-rewrite.git
  1. Install all dependencies
npm install
# or
yarn
  1. Set up the .env.local Create a .env.local file, with MONGODB_URI being the credentials for your development mongodb database
# In .env.local
MONGODB_URI=mongodb+srv://...
  1. Run the development server:
npm run dev
# or
yarn dev

Open http://localhost:3000 with your browser to see the result.

You can start editing the page by modifying pages/index.tsx. The page hot reloads as you edit the file.

API routes can be accessed on http://localhost:3000/api/articles. This endpoint can be edited in pages/api/articles/index.ts.

The pages/api directory is mapped to /api/*. Files in this directory are treated as API routes instead of React pages.

Running this app with docker

Build the app with docker.

docker build -t stuyspecrewrite .

Next, run the built container.

docker run -p 127.0.0.1:3000:3000 stuyspecrewrite

Contributing

We welcome pull requests from Spec Web developers and seasoned JavaScript developers alike! Please follow these steps to contribute.

Learn More

This is a Next.js project bootstrapped with create-next-app.

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

About

The rewrite of The Stuyvesant Spectator's website

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 79.7%
  • CSS 18.4%
  • Dockerfile 1.3%
  • Other 0.6%