How to use glitch with fcc?

How to use glitch with fcc?


first i have write done my code in glitch .

how to make a link let fcc know my code and check it ?

i see the share code in glitch edit page . but parse to fcc solution input box still not work.

with in chrome devTool i have see the 404 not found in network request .

thanks for help :slight_smile:


Can you share the codepen link?


i have write code in not codepen

here’s screen

i use github share the code still not found :


this’s glitch picture


You may try with:!/stump-mailbox?path=package.json


still not working .

How to Use package.json Challenge Help!

thanks sorinr
i have resolve this issue

the key its server.js

fcc fetch code with _api/filename when check solution . so the glitch project must have cros settings

 * the verification process may break
 * ***************************************************/

'use strict';

var fs = require('fs');
var express = require('express');
var app = express();

if (!process.env.DISABLE_XORIGIN) {
  app.use(function(req, res, next) {
    var allowedOrigins = ['', ''];
    var origin = req.headers.origin || '*';
    if(!process.env.XORIG_RESTRICT || allowedOrigins.indexOf(origin) > -1){
         res.setHeader('Access-Control-Allow-Origin', origin);
         res.header("Access-Control-Allow-Headers", "Origin, X-Requested-With, Content-Type, Accept");

app.use('/public', express.static(process.cwd() + '/public'));

  .get(function(req, res, next) {
    fs.readFile(__dirname + '/package.json', function(err, data) {
      if(err) return next(err);
    .get(function(req, res) {
		  res.sendFile(process.cwd() + '/views/index.html');

// Respond not found to all the wrong routes
app.use(function(req, res, next){
  res.type('txt').send('Not found');

// Error Middleware
app.use(function(err, req, res, next) {
  if(err) {
    res.status(err.status || 500)
      .send(err.message || 'SERVER ERROR');

app.listen(process.env.PORT, function () {
  console.log('Node.js listening ...');

MongoDB and Mongoose - Perform Classic Updates by Running Find, Edit, then Save

Having the same issue with both glitch and github, thank your for the solution


you are welcome :slight_smile:


can u post an example link for github please? i still don’t get it


you can find the code from here :

this’s my glitch site


this’s github sample code


Just put link of your app (you can get from share button on upper left side of Glitch page) to challenge “solution” field.